Sha256: c9fd81345750cccbce9235d1517cbfdec7e6c9b4bb6e46c18ec80b650e90a5e1

Contents?: true

Size: 177 Bytes

Versions: 25

Compression:

Stored size: 177 Bytes

Contents

module StorageRoom
  
  class OneAssociationField < AssociationField
    def add_to_entry_class(klass) # :nodoc:
      super
      klass.send(:one, identifier)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
storage_room-0.3.4 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.3 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.2 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.1 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.0 lib/storage_room/embeddeds/fields/associations/one_association_field.rb