Sha256: 48334f1d78f0065bac9f7251d3b285c289aac831a4747062b793b94070e790c2
Contents?: true
Size: 300 Bytes
Versions: 1
Compression:
Stored size: 300 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 autocomplete :title end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin_associations-0.1.3 | spec/dummy/app/models/post.rb |