mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c431f1754b
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?`. |
||
---|---|---|
.. | ||
active_record | ||
rails/generators | ||
active_record.rb |