Module: ActiveRecord::Reflection::HasCount
- Included in:
- ActiveRecord::Reflection
- Defined in:
- lib/active_record/reflection/has_count.rb
Instance Method Summary collapse
Instance Method Details
#create_with_has_count(macro, name, scope, options, ar) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/active_record/reflection/has_count.rb', line 4 def create_with_has_count(macro, name, scope, , ar) case macro when :has_count AssociationReflection.new(macro, name, scope, , ar) else create_without_has_count(macro, name, scope, , ar) end end |