Class: MongoMapper::Plugins::Associations::ManyEmbeddedPolymorphicProxy

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)


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

def can_be_observable?; true; end

#make_observableObject



28
29
30
31
# File 'lib/mm_dirtier/extensions.rb', line 28

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

#observable?Boolean

Returns:

  • (Boolean)


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

def observable?; @observable; end