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.52 app/models/caboose/post.rb
caboose-cms-0.4.51 app/models/caboose/post.rb
caboose-cms-0.4.50 app/models/caboose/post.rb
caboose-cms-0.4.49 app/models/caboose/post.rb
caboose-cms-0.4.48 app/models/caboose/post.rb
caboose-cms-0.4.47 app/models/caboose/post.rb
caboose-cms-0.4.46 app/models/caboose/post.rb
caboose-cms-0.4.45 app/models/caboose/post.rb
caboose-cms-0.4.43 app/models/caboose/post.rb
caboose-cms-0.4.42 app/models/caboose/post.rb
caboose-cms-0.4.41 app/models/caboose/post.rb
caboose-cms-0.4.40 app/models/caboose/post.rb
caboose-cms-0.4.39 app/models/caboose/post.rb
caboose-cms-0.4.38 app/models/caboose/post.rb
caboose-cms-0.4.37 app/models/caboose/post.rb
caboose-cms-0.4.36 app/models/caboose/post.rb
caboose-cms-0.4.35 app/models/caboose/post.rb
caboose-cms-0.4.34 app/models/caboose/post.rb
caboose-cms-0.4.33 app/models/caboose/post.rb
caboose-cms-0.4.32 app/models/caboose/post.rb