Class: MongoMapper::Plugins::Associations::InArrayProxy

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)


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

def can_be_observable?; true; end

#make_observableObject



38
39
40
41
# File 'lib/mm_dirtier/extensions.rb', line 38

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

#observable?Boolean

Returns:

  • (Boolean)


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

def observable?; @observable; end