1. 04 4月, 2014 1 次提交
  2. 03 4月, 2014 4 次提交
    • L
      Fix error when using `with_options` with lambda. · db5d26c9
      Lauro Caetano 提交于
      It was causing error when using `with_options` passing a lambda as its
      last argument.
      
          class User < ActiveRecord::Base
            with_options dependent: :destroy do |assoc|
              assoc.has_many :profiles, -> { where(active: true) }
            end
          end
      
      It was happening because the `option_merger` was taking the last
      argument and checking if it was a Hash. This breaks the HasMany usage,
      because its last argument can be a Hash or a Proc.
      
      As the behavior described in this test:
      https://github.com/rails/rails/blob/master/activesupport/test/option_merger_test.rb#L69
      the method will only accept the lambda, this way it will keep the expected behavior. See 9eaa0a34
      db5d26c9
    • D
      Treat blank UUID values as nil · 1f432c54
      Dmitry Lavrov 提交于
      1f432c54
    • G
      Add ConnectionHelper to refactor tests. · f1169d9d
      Guo Xiang Tan 提交于
      f1169d9d
    • M
      Avoid a spurious deprecation warning for database URLs · 88e60a48
      Matthew Draper 提交于
      This is all about the case where we have a `DATABASE_URL`, and we have a
      `database.yml` present, but the latter doesn't contain the key we're
      looking for.
      
      If the key is a symbol, we'll always connect to `DATABASE_URL`, per the
      new behaviour in 283a2ede.
      
      If the key is a string, on the other hand, it should always be a URL:
      the ability to specify a name not present in `database.yml` is new in
      this version of Rails, and that ability does not stretch to the
      deprecated use of a string in place of a symbol.
      
      Uncovered by @guilleiguaran while investigating #14495 -- this actually
      may be related to the original report, but we don't have enough info to
      confirm.
      88e60a48
  3. 02 4月, 2014 7 次提交
  4. 01 4月, 2014 4 次提交
  5. 31 3月, 2014 3 次提交
  6. 30 3月, 2014 1 次提交
  7. 29 3月, 2014 2 次提交
  8. 28 3月, 2014 6 次提交
  9. 27 3月, 2014 5 次提交
  10. 26 3月, 2014 4 次提交
  11. 25 3月, 2014 2 次提交
  12. 23 3月, 2014 1 次提交