method

calculate_constructable

calculate_constructable(macro, options)
private

No documentation available.

# File activerecord/lib/active_record/reflection.rb, line 408
        def calculate_constructable(macro, options)
          case macro
          when :belongs_to
            !options[:polymorphic]
          when :has_one
            !options[:through]
          else
            true
          end
        end