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 Property

#build, #build_index_config

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

Returns a new instance of SingularProperty.



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

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