Class: MongoMapper::Plugins::Associations::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/mm_partial_update/extensions.rb

Instance Method Summary collapse

Instance Method Details

#add_updates_to_command(*args) ⇒ Object



12
13
14
15
16
# File 'lib/mm_partial_update/extensions.rb', line 12

def add_updates_to_command(*args)
  #noop - this needs to be here to prevent this call from
  # bubbling up to the document. For non-embedded proxies, there
  # no updates to add to the command.
end

#can_be_persistable?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/mm_partial_update/extensions.rb', line 20

def can_be_persistable?
  false
end

#persistable?Boolean

noop - this needs to be here to prevent this call from bubbling up to the document. For non-embedded proxies, there no updates to add to the command.

Returns:

  • (Boolean)


17
18
19
# File 'lib/mm_partial_update/extensions.rb', line 17

def persistable?
  false
end