Sha256: 1a34479471ab8071bb9fced7f6e27f7e415babcbc4afe472c22a4869ec300e2e

Contents?: true

Size: 543 Bytes

Versions: 58

Compression:

Stored size: 543 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', 
    :styles => {
      :tiny  => '75x75>',
      :thumb => '150x150>',
      :large => '400x400>'
    }
  do_not_validate_attachment_file_type :image

end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
caboose-cms-0.5.21 app/models/caboose/post.rb
caboose-cms-0.5.20 app/models/caboose/post.rb
caboose-cms-0.5.19 app/models/caboose/post.rb
caboose-cms-0.5.17 app/models/caboose/post.rb
caboose-cms-0.5.16 app/models/caboose/post.rb
caboose-cms-0.5.15 app/models/caboose/post.rb
caboose-cms-0.5.14 app/models/caboose/post.rb
caboose-cms-0.5.13 app/models/caboose/post.rb
caboose-cms-0.5.12 app/models/caboose/post.rb
caboose-cms-0.5.11 app/models/caboose/post.rb
caboose-cms-0.5.10 app/models/caboose/post.rb
caboose-cms-0.5.9 app/models/caboose/post.rb
caboose-cms-0.5.8 app/models/caboose/post.rb
caboose-cms-0.5.7 app/models/caboose/post.rb
caboose-cms-0.5.6 app/models/caboose/post.rb
caboose-cms-0.5.5 app/models/caboose/post.rb
caboose-cms-0.5.4 app/models/caboose/post.rb
caboose-cms-0.5.3 app/models/caboose/post.rb
caboose-cms-0.5.2 app/models/caboose/post.rb
caboose-cms-0.5.1 app/models/caboose/post.rb