app/models/lolita/upload/file.rb in lolita-file-upload-0.4.13 vs app/models/lolita/upload/file.rb in lolita-file-upload-0.5.0
- old
+ new
@@ -1,8 +1,8 @@
module Lolita
module Upload
class File < ActiveRecord::Base
- set_table_name :lolita_files
+ self.table_name = 'lolita_files'
attr_accessible :asset, :name, :fileable_type, :asset_extension
mount_uploader :asset, FileUploader
belongs_to :fileable, :polymorphic=>true
#validate :size_limit FIXME to work with more than one tab