Module: EntityEvents
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/entity_events.rb,
lib/entity_events/version.rb,
lib/entity_events/interaction.rb,
lib/entity_events/event_finder.rb
Defined Under Namespace
Classes: EntityEvent, EventFinder, Interaction
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.record(request, current_user, auto_log = true) ⇒ Object
16 17 18 19 20 |
# File 'lib/entity_events.rb', line 16 def record(request, current_user, auto_log = true) event_finder = EventFinder.find(request.filtered_parameters[:controller]) entity_event = event_finder.new request, current_user entity_event.record if auto_log || entity_event.should_record? end |