Class: LaMaquina::DependencyMap::ConstantMap

Inherits:
Base
  • Object
show all
Defined in:
lib/la_maquina/dependency_map/constant_map.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LaMaquina::DependencyMap::Base

Instance Method Details

#mapping_for(notified_class, id) ⇒ Object



5
6
7
8
9
10
# File 'lib/la_maquina/dependency_map/constant_map.rb', line 5

def mapping_for(notified_class, id)
  notified_class.camelize.constantize
rescue => e
  LaMaquina.error_notifier.notify(  e,
                                    missing_class: notified_class )
end