We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
In some situations, it might be necessary to execute code when a new file has been assigned to a mounted uploader, before saving the model.
class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader def avatar=(obj) super(obj) # Put your callbacks here, e.g. self.moderated = false end end