Sha256: 5e13fb4025dfd6db437e10c9d781d8dd9c9bf172e7b44e8fc2245b85bb6c389c

Contents?: true

Size: 334 Bytes

Versions: 16

Compression:

Stored size: 334 Bytes

Contents

ActiveSupport::Notifications.subscribe "process_action.action_controller" do |name, start, finish, id, payload|
  payload.delete(:params)
  extra_hash = {:total_runtime => (finish - start) * 1000}
  payload.merge! extra_hash
  unless payload[:controller].include? "Concen"
    Concen::Response.safely(false).create(payload)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
concen-0.2.9 config/initializers/notification.rb
concen-0.2.8 config/initializers/notification.rb
concen-0.2.7 config/initializers/notification.rb
concen-0.2.6 config/initializers/notification.rb
concen-0.2.5 config/initializers/notification.rb
concen-0.2.4 config/initializers/notification.rb
concen-0.2.3 config/initializers/notification.rb
concen-0.2.2 config/initializers/notification.rb
concen-0.2.1 config/initializers/notification.rb
concen-0.2.0 config/initializers/notification.rb
concen-0.1.7 config/initializers/notification.rb
concen-0.1.6 config/initializers/notification.rb
concen-0.1.5 config/initializers/notification.rb
concen-0.1.4 config/initializers/notification.rb
concen-0.1.3 config/initializers/notification.rb
concen-0.1.2 config/initializers/notification.rb