Sha256: 7a6a63ed1b7e898a71a2bf3690d34d610f797bf80f6d9852bdf1f345f6c8ff21
Contents?: true
Size: 593 Bytes
Versions: 3
Compression:
Stored size: 593 Bytes
Contents
class Caboose::Post < ActiveRecord::Base self.table_name = "posts" has_many :post_category_memberships has_many :post_categories, :through => :post_category_memberships belongs_to :site attr_accessible :id, :site_id, :category_id, :title, :body, :published, :created_at has_attached_file :image, :path => 'posts/:id_:style.:extension', :default_url => 'http://placehold.it/300x300', :styles => { :tiny => '75x75>', :thumb => '150x150>', :large => '400x400>' } do_not_validate_attachment_file_type :image end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
caboose-cms-0.5.25 | app/models/caboose/post.rb |
caboose-cms-0.5.24 | app/models/caboose/post.rb |
caboose-cms-0.5.23 | app/models/caboose/post.rb |