-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
I am working with latest version on Mongoid and Rails4
my code stuff is like this,
class Example include Mongoid::Document include Mongoid::Timestamps field :a, type: Integer after_create :haha def haha if a.nil? destroy end end end
The callback is not happening. Even if the "a" in not nil not storing after_create.