Sha256: 848a31049aac1ed82bbd6c9e15f187939f82eef78eb5dbf27632e315e7978087

Contents?: true

Size: 513 Bytes

Versions: 149

Compression:

Stored size: 513 Bytes

Contents

class Caboose::Post < ActiveRecord::Base
  self.table_name = "posts"
  
  has_many :post_category_memberships
  has_many :post_categories, :through => :post_category_memberships
    
  attr_accessible :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

149 entries across 149 versions & 1 rubygems

Version Path
caboose-cms-0.4.113 app/models/caboose/post.rb
caboose-cms-0.4.112 app/models/caboose/post.rb
caboose-cms-0.4.111 app/models/caboose/post.rb
caboose-cms-0.4.110 app/models/caboose/post.rb
caboose-cms-0.4.109 app/models/caboose/post.rb
caboose-cms-0.4.108 app/models/caboose/post.rb
caboose-cms-0.4.106 app/models/caboose/post.rb
caboose-cms-0.4.105 app/models/caboose/post.rb
caboose-cms-0.4.104 app/models/caboose/post.rb
caboose-cms-0.4.103 app/models/caboose/post.rb
caboose-cms-0.4.102 app/models/caboose/post.rb
caboose-cms-0.4.101 app/models/caboose/post.rb
caboose-cms-0.4.100 app/models/caboose/post.rb
caboose-cms-0.4.99 app/models/caboose/post.rb
caboose-cms-0.4.98 app/models/caboose/post.rb
caboose-cms-0.4.97 app/models/caboose/post.rb
caboose-cms-0.4.96 app/models/caboose/post.rb
caboose-cms-0.4.95 app/models/caboose/post.rb
caboose-cms-0.4.94 app/models/caboose/post.rb
caboose-cms-0.4.93 app/models/caboose/post.rb