Flowdock
method

calculate_constructable

Importance_0
v4.1.8 - 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 408
        def calculate_constructable(macro, options)
          case macro
          when :belongs_to
            !options[:polymorphic]
          when :has_one
            !options[:through]
          else
            true
          end
        end
Register or log in to add new notes.