Sha256: 47cd3813d266a8a7a7a1aa230299bc52065ae5a992afff91b46c7b031f260083

Contents?: true

Size: 261 Bytes

Versions: 6

Compression:

Stored size: 261 Bytes

Contents

class Profile
  include Mongoid::Document

  field :avatar, :type => String
  field :homepage, :type => String
  field :created_at, :type => DateTime
  field :updated_at, :type => DateTime

  embedded_in :user, :class_name => "User", :inverse_of => :profile
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
acts_as_api-0.4.4 spec/mongoid_dummy/app/models/profile.rb
acts_as_api-0.4.3 spec/mongoid_dummy/app/models/profile.rb
acts_as_api_sequel-0.0.1 spec/mongoid_dummy/app/models/profile.rb
acts_as_api-0.4.2 spec/mongoid_dummy/app/models/profile.rb
acts_as_api-0.4.1 spec/mongoid_dummy/app/models/profile.rb
acts_as_api-0.4 spec/mongoid_dummy/app/models/profile.rb