Module: MmPartialUpdate::Plugins::PartialUpdate::EmbeddedDocument::InstanceMethods
- Defined in:
- lib/mm_partial_update/plugins/embedded_document.rb
Instance Method Summary collapse
Instance Method Details
#create_or_update_changes(options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/mm_partial_update/plugins/embedded_document.rb', line 13 def create_or_update_changes(={}) assert_root_saved super end |
#database_selector ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/mm_partial_update/plugins/embedded_document.rb', line 18 def database_selector selector = @_association_name.to_s selector = "#{_parent_document.database_selector}.#{selector}" if _parent_document.respond_to?(:database_selector) selector = "#{selector}.#{@_database_position}" if defined?(@_database_position) selector end |