Displaying 1 result from an estimated 1 matches for "on_after_sav".
Did you mean:
on_after_save
2006 Apr 01
2
ActiveRecord callbacks not called
...})
breakpoint
assert @image.save
When breakpointing, and trying @image.save manually I get a "true" as a
result. So I presume everything went fine.
The model is :
class Image < ActiveRecord::Base
belongs_to :article
before_destroy :on_before_destroy
after_save :on_after_save
validates_presence_of :extension
#cutted code
def on_after_save
breakpoint
end
end
The breakpoint in on_after_save is never reached.
I''m pulling my hairs out since yesterday - Any idea ?
Thanks
--
Posted via http://www.ruby-forum.com/.