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.24 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.23 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.22 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.21 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.20 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.19 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.18 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.17 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.16 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.15 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.14 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.13 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.12 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.11 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.10 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.9 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.8 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.7 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.6 lib/storage_room/embeddeds/fields/associations/one_association_field.rb
storage_room-0.3.5 lib/storage_room/embeddeds/fields/associations/one_association_field.rb