Class: MongoMapper::Plugins::Associations::ManyEmbeddedProxy

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

Instance Method Summary collapse

Instance Method Details

#can_be_observable?Boolean

Returns:

  • (Boolean)


15
# File 'lib/mm_dirtier/extensions.rb', line 15

def can_be_observable?; true; end

#make_observableObject



18
19
20
21
# File 'lib/mm_dirtier/extensions.rb', line 18

def make_observable
  class << self; include MmDirtier::ManyEmbeddedProxyListener; end unless observable?
  @observable = true
end

#observable?Boolean

Returns:

  • (Boolean)


16
# File 'lib/mm_dirtier/extensions.rb', line 16

def observable?; @observable; end