aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2015-09-05 11:33:21 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2015-09-05 11:33:21 +1200
commitc431f1754b4329b972ce2e715df0e33aeaee7d30 (patch)
treea37ebccece492962a5da85cea06f55c4fabbbf78 /activerecord/test/schema/schema.rb
parent21ffef38a5dc5a6a21f7e841aecab5b51f4fd185 (diff)
downloadrails-c431f1754b4329b972ce2e715df0e33aeaee7d30.tar.gz
rails-c431f1754b4329b972ce2e715df0e33aeaee7d30.tar.bz2
rails-c431f1754b4329b972ce2e715df0e33aeaee7d30.zip
#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?`.
Diffstat (limited to 'activerecord/test/schema/schema.rb')
0 files changed, 0 insertions, 0 deletions