1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Samuel Williams c431f1754b #where fails if opts.responds_to?(:==) unexpectedly
Sometimes opts passed in might respond to ==, e.g. `Arel::Nodes::Grouping`. In this case, `opts == :chain` returns `Arel::Nodes::Equality` which causes odd behaviour. Prefer `if :chain == opts` which guarantees that `Symbol#==` would be invoked. Alternatively consider `eql?`.
2015-09-05 11:33:21 +12:00
..
active_record #where fails if opts.responds_to?(:==) unexpectedly 2015-09-05 11:33:21 +12:00
rails/generators [ci skip] Correct grammar, add docs to ActiveRecord migration generator 2015-04-28 13:34:13 -07:00
active_record.rb Add #cache_key to ActiveRecord::Relation. 2015-07-20 01:46:03 +01:00