method
calculate_constructable
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::Reflection::AssociationReflection
calculate_constructable(macro, options)private
No documentation available.
# File activerecord/lib/active_record/reflection.rb, line 485
def calculate_constructable(macro, options)
case macro
when :belongs_to
!polymorphic?
when :has_one
!options[:through]
else
true
end
end