module ActiveRecord::Reflection::HasCount

Public Instance Methods

create_with_has_count(macro, name, scope, options, ar) click to toggle source
# File lib/active_record/reflection/has_count.rb, line 4
def create_with_has_count(macro, name, scope, options, ar)
  case macro
  when :has_count
    AssociationReflection.new(macro, name, scope, options, ar)
  else
    create_without_has_count(macro, name, scope, options, ar)
  end
end