app/models/redditor/image.rb in redditor-0.1.11 vs app/models/redditor/image.rb in redditor-0.1.12
- old
+ new
@@ -4,11 +4,11 @@
class Image < ActiveRecord::Base
self.table_name = "redditor_images"
after_initialize :default_values # чтобы файл загружался, пока через html5 не передаем позицию
- # attr_accessible :descr, :imageable_id, :imageable_type, :position, :src, :temp_id
- attr_accessor :temp_id
+ # attr_accessible :descr, :imageable_id, :imageable_type, :position, :src
+ attr_accessor :object_id
mount_uploader :src, RedditorUploader
validates :src, :presence => true
\ No newline at end of file