aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/log_subscriber.rb
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2014-06-05 15:27:07 -0400
committereileencodes <eileencodes@gmail.com>2014-06-09 19:12:43 -0400
commit5a0b184c53bf649930b153f3c39c542eca25d74a (patch)
treede847eed7b12932fa4434ef5e835bed82d8ae80a /activerecord/lib/active_record/log_subscriber.rb
parent3fe33a318f29c03966ca5892413884414421108c (diff)
downloadrails-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/log_subscriber.rb')
0 files changed, 0 insertions, 0 deletions