Class: EntityEvents::EventFinder
- Inherits:
-
Object
- Object
- EntityEvents::EventFinder
- Defined in:
- lib/entity_events/event_finder.rb
Class Method Summary collapse
Class Method Details
.find(hint) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/entity_events/event_finder.rb', line 6 def find(hint) #get the entity's custom EntityEvent begin entity = from_hint(hint) entity = entity.constantize rescue NameError #if not found then use the default EntityEvent EntityEvents::EntityEvent end end |