Sha256: 97f174fc158c1002db9eb0446e4455e39d20ce5dcfab63d0021ffcc6aee36c60

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

class Post < ActiveRecord::Base
  attr_accessible :title, :body, :published_at, :featured, :creator_id
  
  belongs_to :creator, :class_name => "User"
  has_many :taggings, :as => :taggable
  has_many :tags, :through => :taggings
  
  validates_presence_of :title, :body, :creator_id
  
  autocomplete :title
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aa_associations-0.1.2 test/dummy/app/models/post.rb
aa_associations-0.1.1 test/dummy/app/models/post.rb
aa_associations-0.1.0 test/dummy/app/models/post.rb