app/models/lolita/upload/file.rb in lolita-file-upload-0.8.3 vs app/models/lolita/upload/file.rb in lolita-file-upload-1.0.0
- old
+ new
@@ -1,9 +1,8 @@
module Lolita
module Upload
class File < ActiveRecord::Base
self.table_name = 'lolita_files'
- attr_accessible :asset, :name, :fileable_type, :asset_extension
mount_uploader :asset, FileUploader
belongs_to :fileable, polymorphic: true
before_save :set_metadata
private