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