diff options
author | eileencodes <eileencodes@gmail.com> | 2014-06-05 15:27:07 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2014-06-09 19:12:43 -0400 |
commit | 5a0b184c53bf649930b153f3c39c542eca25d74a (patch) | |
tree | de847eed7b12932fa4434ef5e835bed82d8ae80a /activerecord/lib/active_record/result.rb | |
parent | 3fe33a318f29c03966ca5892413884414421108c (diff) | |
download | rails-5a0b184c53bf649930b153f3c39c542eca25d74a.tar.gz rails-5a0b184c53bf649930b153f3c39c542eca25d74a.tar.bz2 rails-5a0b184c53bf649930b153f3c39c542eca25d74a.zip |
add has_one? method and reuse instead of checking macro
Instead of checking for `macro == :has_one` throughout the
codebase we can create a `has_one?` method to match the `belongs_to?`,
`polymorphic?` and other methods.
Diffstat (limited to 'activerecord/lib/active_record/result.rb')
0 files changed, 0 insertions, 0 deletions