Sha256: 4ea1a29cae1d81662b11667bf146aac4cc7c598c28a8a3b70f6c3cdf6eea080f
Contents?: true
Size: 368 Bytes
Versions: 44
Compression:
Stored size: 368 Bytes
Contents
module Locomotive::Wagon module InstrumentationConcern def instrument(action, payload = {}) ActiveSupport::Notifications.instrument(instrument_scope_name(action), payload) end def instrument_scope_name(action) name = self.class.name[/::(\w+)Command$/, 1].underscore ['wagon', name, action.to_s].compact.join('.') end end end
Version data entries
44 entries across 44 versions & 1 rubygems