Class: MongoMapper::Plugins::Associations::EmbeddedCollection

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

Instance Method Summary collapse

Instance Method Details

#make_persistableObject



24
25
26
# File 'lib/mm_partial_update/extensions.rb', line 24

def make_persistable
  class << self; include MmPartialUpdate::EmbeddedCollection; end unless persistable?
end

#persistable?Boolean

Returns:

  • (Boolean)


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

def persistable?
  kind_of?(MmPartialUpdate::EmbeddedCollection)
end