Flowdock
method

calculate_constructable

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection::AssociationReflection
calculate_constructable(macro, options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.