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.71 app/models/caboose/media_file.rb
caboose-cms-0.4.70 app/models/caboose/media_file.rb
caboose-cms-0.4.69 app/models/caboose/media_file.rb
caboose-cms-0.4.68 app/models/caboose/media_file.rb
caboose-cms-0.4.67 app/models/caboose/media_file.rb
caboose-cms-0.4.66 app/models/caboose/media_file.rb
caboose-cms-0.4.65 app/models/caboose/media_file.rb
caboose-cms-0.4.64 app/models/caboose/media_file.rb
caboose-cms-0.4.63 app/models/caboose/media_file.rb
caboose-cms-0.4.62 app/models/caboose/media_file.rb
caboose-cms-0.4.61 app/models/caboose/media_file.rb
caboose-cms-0.4.60 app/models/caboose/media_file.rb
caboose-cms-0.4.59 app/models/caboose/media_file.rb
caboose-cms-0.4.58 app/models/caboose/media_file.rb
caboose-cms-0.4.57 app/models/caboose/media_file.rb
caboose-cms-0.4.56 app/models/caboose/media_file.rb
caboose-cms-0.4.55 app/models/caboose/media_file.rb
caboose-cms-0.4.54 app/models/caboose/media_file.rb
caboose-cms-0.4.53 app/models/caboose/media_file.rb
caboose-cms-0.4.52 app/models/caboose/media_file.rb