Class: StorageRoom::OneAssociationField

Inherits:
AssociationField show all
Defined in:
lib/storage_room/embeddeds/fields/associations/one_association_field.rb

Instance Method Summary (collapse)

Methods inherited from AssociationField

#collection, #collection_loaded?

Methods included from Accessors

#[], #as_json, #attributes, #attributes=, #eql?, #hash, #initialize, #inspect, #loaded?, #proxy?, #reset!, #response_data, #response_data=, #set_from_response_data, #to_hash

Instance Method Details

- (Object) add_to_entry_class(klass)

:nodoc:



4
5
6
7
# File 'lib/storage_room/embeddeds/fields/associations/one_association_field.rb', line 4

def add_to_entry_class(klass) # :nodoc:
  super
  klass.send(:one, identifier)
end