Class: ActiveRecord::Reflection::AssociationReflection

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/mass_assignment_security/reflection.rb

Instance Method Summary collapse

Instance Method Details

#build_association(*options, &block) ⇒ Object



15
16
17
# File 'lib/active_record/mass_assignment_security/reflection.rb', line 15

def build_association(*options, &block)
  klass.new(*options, &block)
end