Sha256: ea9fe9abdfe830eed09bc43af19741e119487239aeb67fa558fa6dd6ef3e97c6

Contents?: true

Size: 677 Bytes

Versions: 64

Compression:

Stored size: 677 Bytes

Contents

module Caboose
	class PageTemplate < ActiveRecord::Base
	  self.table_name = "page_templates"
	  belongs_to :page
	  belongs_to :category, :class_name => "Caboose::PageTemplateCategory"
	  attr_accessible :page_id, :site_id, :title, :description, :created_at, :updated_at, :category_id, :sort_order
	  has_attached_file :screenshot,
	    :path => ':caboose_prefixpage_templates/:id_screenshot_:style.:extension',
	    :default_url => "https://cabooseit.s3.amazonaws.com/assets/shared/template.png",
	    :styles => {
	      :small  => '300x300>',
	      :medium => '600x600>',
	      :large  => '1000x1000>'
	    }  
	  do_not_validate_attachment_file_type :screenshot
	end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/models/caboose/page_template.rb
caboose-cms-1.0.2 app/models/caboose/page_template.rb
caboose-cms-1.0.1 app/models/caboose/page_template.rb
caboose-cms-0.9.228 app/models/caboose/page_template.rb
caboose-cms-0.9.227 app/models/caboose/page_template.rb
caboose-cms-0.9.226 app/models/caboose/page_template.rb
caboose-cms-0.9.225 app/models/caboose/page_template.rb
caboose-cms-0.9.224 app/models/caboose/page_template.rb
caboose-cms-0.9.223 app/models/caboose/page_template.rb
caboose-cms-0.9.222 app/models/caboose/page_template.rb
caboose-cms-0.9.221 app/models/caboose/page_template.rb
caboose-cms-0.9.220 app/models/caboose/page_template.rb
caboose-cms-0.9.219 app/models/caboose/page_template.rb
caboose-cms-0.9.218 app/models/caboose/page_template.rb
caboose-cms-0.9.217 app/models/caboose/page_template.rb
caboose-cms-0.9.216 app/models/caboose/page_template.rb
caboose-cms-0.9.215 app/models/caboose/page_template.rb
caboose-cms-0.9.214 app/models/caboose/page_template.rb
caboose-cms-0.9.213 app/models/caboose/page_template.rb
caboose-cms-0.9.212 app/models/caboose/page_template.rb