Module: Mongoid::Orderable::Mixins::Cascadeable
- Defined in:
- lib/mongoid/orderable/mixins/cascadeable.rb
Overview
This is required to trigger callbacks on embedded objects. Otherwise, the #move_to parameter won’t work when saving the parent.
Instance Method Summary collapse
Instance Method Details
#in_callback_state?(kind) ⇒ Boolean
9 10 11 |
# File 'lib/mongoid/orderable/mixins/cascadeable.rb', line 9 def in_callback_state?(kind) super || move_all.present? end |