Class: Formed::Reflection::PolymorphicReflection

Inherits:
AbstractReflection show all
Defined in:
lib/formed/reflection.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from AbstractReflection

#alias_candidate, #build_association, #build_scope, #chain, #check_validity_of_inverse!, #class_name, #inverse_of, #scopes, #strict_loading?, #strict_loading_violation_message, #table_name, #through_reflection?

Constructor Details

#initialize(reflection, previous_reflection) ⇒ PolymorphicReflection

Returns a new instance of PolymorphicReflection.



746
747
748
749
# File 'lib/formed/reflection.rb', line 746

def initialize(reflection, previous_reflection)
  @reflection = reflection
  @previous_reflection = previous_reflection
end

Instance Method Details

#constraintsObject



751
752
753
# File 'lib/formed/reflection.rb', line 751

def constraints
  @reflection.constraints + [source_type_scope]
end