how to skip before_save filter in Rails for specific command
- by Tam
I have a before_save defined as follows:
def before_save
self.token = generate_token
end
I want to skip it for specific save method calls. so in my code I would like to do
@user.save
without before_save filter getting called. Can I do that?