Rails paperclip and update_attributes for model -



Rails paperclip and update_attributes for model -

as see in logs, when update_attributes model have attachment, no matter attribute refresh, total entry refreshed - example:

i have model user have fields:

-active -photo ( :thumb, :large, :org etc. styles paperclip)

when made @user.update_attributes(:active => true), takes long time because (as see in logs) photo refreshed paperclip , attachment recreated.

is normal behavior or have bug ?

this log update model id:

ruby-on-rails paperclip

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -