diff options
author | eileencodes <eileencodes@gmail.com> | 2014-06-01 09:30:40 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2014-06-09 19:27:08 -0400 |
commit | bfd0159413ac7941c80166b41856795d93158bb1 (patch) | |
tree | dabee54d5ac2646f69309e12b856b9c378662503 /actionpack | |
parent | e1175d99e2c2813b248475fd0234818cd3b3e386 (diff) | |
download | rails-bfd0159413ac7941c80166b41856795d93158bb1.tar.gz rails-bfd0159413ac7941c80166b41856795d93158bb1.tar.bz2 rails-bfd0159413ac7941c80166b41856795d93158bb1.zip |
reuse available collection? check instead of macro
Reflection has an available method that is used to check if the
reflection is a collection. Any :has_many macro is considered a
collection and `collection?` should be used instead of
`macro == :has_many`.
Diffstat (limited to 'actionpack')
0 files changed, 0 insertions, 0 deletions