Class: MongoMapper::Plugins::Associations::ManyEmbeddedPolymorphicProxy
- Inherits:
-
Object
- Object
- MongoMapper::Plugins::Associations::ManyEmbeddedPolymorphicProxy
- Defined in:
- lib/mm_dirtier/extensions.rb
Instance Method Summary collapse
Instance Method Details
#can_be_observable? ⇒ Boolean
25 |
# File 'lib/mm_dirtier/extensions.rb', line 25 def can_be_observable?; true; end |
#make_observable ⇒ Object
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
26 |
# File 'lib/mm_dirtier/extensions.rb', line 26 def observable?; @observable; end |