Sha256: 38f069da52d520efd95b9e0077c53a3be9fede1173bdd18701f151276ebd5e68

Contents?: true

Size: 300 Bytes

Versions: 5

Compression:

Stored size: 300 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery

  def rescue_action(e)
    raise e
  end

  # Returns id of hypothetical current user
  def current_user
    153
  end

  def info_for_paper_trail
    {:ip => request.remote_ip, :user_agent => request.user_agent}
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paper_trail-2.1.1 test/dummy/app/controllers/application_controller.rb
paper_trail-2.1.0 test/dummy/app/controllers/application_controller.rb
paper_trail-2.0.2 test/dummy/app/controllers/application_controller.rb
paper_trail-2.0.1 test/dummy/app/controllers/application_controller.rb
paper_trail-2.0.0 test/dummy/app/controllers/application_controller.rb