Sha256: 8de7587e1fc6c70ffbc4d9d37833ddf0fd099175475fbf92b69e3c9c1250f8f2

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

ActiveSupport::Notifications.subscribe "process_action.action_controller" do |name, start, finish, id, payload|
  if payload[:exception]
    name, message = *payload[:exception]
    if current_user
      IwygBe::Failure.create!(:message => message, :user_id => current_user.id)
    else
      IwygBe::Failure.create!(:message => message)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iwyg_be-0.0.1 config/initializers/exception_handler.rb