Class: ActiveFedora::Associations::Builder::SingularProperty

Inherits:
Property show all
Defined in:
lib/active_fedora/associations/builder/singular_property.rb

Instance Attribute Summary

Attributes inherited from Association

#inversed, #owner, #reflection, #target

Instance Method Summary collapse

Methods inherited from Association

#association_scope, #initialize_attributes, #load_target, #loaded!, #loaded?, #reload, #reset, #scope, #set_inverse_instance, #stale_target?, #target_scope

Constructor Details

#initialize(model, name, options) ⇒ SingularProperty


6
7
8
9
# File 'lib/active_fedora/associations/builder/singular_property.rb', line 6

def initialize(model, name, options)
  super
  @name = :"#{name}_id"
end