Sha256: f9245c6b9b45f5845ab7c3599bd1731df3fdd4ce36049c2af198a88bfe5956e5
Contents?: true
Size: 273 Bytes
Versions: 2
Compression:
Stored size: 273 Bytes
Contents
class Post < ActiveRecord::Base has_many :post_categories has_many :categories, :through => :post_categories has_many :taggings, :as => :taggable has_many :tags, :through => :taggings belongs_to :user def self.statuses %w(draft hidden published) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.25 | spec/dummy/app/models/post.rb |
puffer-0.0.24 | spec/dummy/app/models/post.rb |