Sha256: ee28f2be29b154c3c24390162ac89dc6264ef561d012fbcaaef97292258b8d5b
Contents?: true
Size: 454 Bytes
Versions: 102
Compression:
Stored size: 454 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 def api_hash { :id => self.id, :name => self.name, :description => self.description, :url => self.file.url } end end
Version data entries
102 entries across 102 versions & 1 rubygems