Rails Paperclip updating model -
i have problem paperclip , active_admin gem. model have attachment
class item < activerecord::base has_attached_file :photo ///rest of code style etc. def approve! self.update_attributes(:active => true, :abc=>true,:def=>true) end end
when update active_admin model, example
a.approve!
paperclip every time save new attachment model. somethings wrong or there alternative disable behavior?
when have approve 50 element takes times , server load...
ruby-on-rails paperclip
No comments:
Post a Comment