last day (14 days later) » 

1:03 PM
hey
 
Hi
1 minute and I will go again through that method with debugger
 
not sure if this what you need.. it's a step by step debugging up to the ROLLBACK message
 
Problem solved, guys. It's the return value of the hook. :)
 
:)
it worked
fucking waste of 1 week.. I thought I will find it
 
1:10 PM
Sergio the best
 
agree :)
 
😎
 
can you explain this? or a link to where I can read more about this behavior?
http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html

class EncryptionWrapper
def before_save(record)
record.credit_card_number = encrypt(record.credit_card_number)
end
end

they do not have to set true
found

Canceling callbacks

If a before_* callback throws :abort, all the later callbacks and the associated action are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last.
 

last day (14 days later) »