Class: Mongoid::Orderable::Handlers::DocumentTransactional
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Document
#after_destroy, #after_update, #before_update
Methods inherited from Base
Constructor Details
This class inherits a constructor from Mongoid::Orderable::Handlers::Base
Instance Method Details
#after_create ⇒ Object
11 12 13 14 |
# File 'lib/mongoid/orderable/handlers/document_transactional.rb', line 11 def after_create apply_all_positions super end |
#before_create ⇒ Object
7 8 9 |
# File 'lib/mongoid/orderable/handlers/document_transactional.rb', line 7 def before_create set_new_record_positions end |