spec/app/models/actor.rb in mongoid-3.1.7 vs spec/app/models/actor.rb in mongoid-4.0.0.alpha1
- old
+ new
@@ -5,10 +5,9 @@
has_and_belongs_to_many :tags
embeds_many :things, validate: false, cascade_callbacks: true
accepts_nested_attributes_for :things, allow_destroy: true
define_model_callbacks :custom
- observable :custom
def do_something
run_callbacks(:custom) do
self.name = "custom"
end