Sha256: b6c7297e552b9ce39d40a94c72cc17664aa202aa0edb21fdb0c0e83f8f48c558

Contents?: true

Size: 290 Bytes

Versions: 28

Compression:

Stored size: 290 Bytes

Contents

class Caboose::MediaFile < ActiveRecord::Base

  self.table_name = "media_files"
  belongs_to :media_category
  has_attached_file :file, :path => 'media-files/:id.:extension'
  do_not_validate_attachment_file_type :file  
  attr_accessible :id, :media_category_id, :name, :description

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
caboose-cms-0.4.51 app/models/caboose/media_file.rb
caboose-cms-0.4.50 app/models/caboose/media_file.rb
caboose-cms-0.4.49 app/models/caboose/media_file.rb
caboose-cms-0.4.48 app/models/caboose/media_file.rb
caboose-cms-0.4.47 app/models/caboose/media_file.rb
caboose-cms-0.4.46 app/models/caboose/media_file.rb
caboose-cms-0.4.45 app/models/caboose/media_file.rb
caboose-cms-0.4.43 app/models/caboose/media_file.rb