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

Class Method Summary collapse

Methods inherited from Property

valid_options

Methods inherited from Association

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

Constructor Details

This class inherits a constructor from ActiveFedora::Associations::Association

Class Method Details

.better_name(name) ⇒ Object



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

def self.better_name(name)
  :"#{name}_id"
end

.macroObject



3
4
5
# File 'lib/active_fedora/associations/builder/singular_property.rb', line 3

def self.macro
  :singular_rdf
end