Sha256: 00dbacf3cd90de948e902937b60271b30ce15b92c24df9bd579a794ce380aa8a

Contents?: true

Size: 290 Bytes

Versions: 4

Compression:

Stored size: 290 Bytes

Contents

class Post < ActiveRecord::Base
  attr_accessible :title

  has_many :comments, autosave: true, dependent: :destroy
  has_many :tags, autosave: true, dependent: :destroy
  belongs_to :category, autosave: true, dependent: :destroy
  belongs_to :user, autosave: true, dependent: :destroy
end

Version data entries

4 entries across 4 versions & 1 rubygems

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