Sha256: 655f4856c835f480f3b145e1245d004e89b283839ab8ef00dcae47b813cf3cd8

Contents?: true

Size: 290 Bytes

Versions: 24

Compression:

Stored size: 290 Bytes

Contents

class Name
  include Mongoid::Document
  field :first_name
  field :last_name
  field :parent_title
  key :first_name, :last_name
  embeds_many :translations
  embedded_in :namable, :polymorphic => true

  def set_parent=(set = false)
    self.parent_title = namable.title if set
  end
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
mongoid_spacial-0.2.17 spec/models/name.rb
sig_mongoid_spacial-0.2.17 spec/models/name.rb
cb_mongoid_spacial-0.2.16 spec/models/name.rb
mongoid_geospatial-1.0.0 spec/models/name.rb
mongoid_geospatial-1.0.0rc1 spec/models/name.rb
mongoid_geospatial-1.0.0rc0 spec/models/name.rb
mongoid_spacial-0.2.16 spec/models/name.rb
mongoid_spacial-0.2.13 spec/models/name.rb
mongoid_spacial-0.2.12 spec/models/name.rb
mongoid_spacial-0.2.11 spec/models/name.rb
mongoid_spacial-0.2.10 spec/models/name.rb
mongoid_spacial-0.2.8 spec/models/name.rb
mongoid_spacial-0.2.7 spec/models/name.rb
mongoid_spacial-0.2.6 spec/models/name.rb
mongoid_spacial-0.2.5 spec/models/name.rb
mongoid_spacial-0.2.4 spec/models/name.rb
mongoid_spacial-0.2.3 spec/models/name.rb
mongoid_spacial-0.2.2 spec/models/name.rb
mongoid_spacial-0.2.0 spec/models/name.rb
mongoid_spacial-0.1.1 spec/models/name.rb