Sha256: 058b9ba0a0923984328872dba2a57d82e085feca43b2e735323bd3506bc27fef

Contents?: true

Size: 164 Bytes

Versions: 4

Compression:

Stored size: 164 Bytes

Contents

class User < ActiveRecord::Base
  attr_accessible :name, :email

  has_one :account, autosave: true, dependent: :destroy
  has_many :posts
  has_many :comments
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
embedded_associations-0.0.4 spec/support/app/app/models/user.rb
embedded_associations-0.0.3 spec/support/app/app/models/user.rb
embedded_associations-0.0.2 spec/support/app/app/models/user.rb
embedded_associations-0.0.1 spec/support/app/app/models/user.rb