Sha256: cf4cd2d6e7623bf9fc83496a023650dd95f8a2982a1460d1c7752474259364cf

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  private

    def not_authenticated
      redirect_to login_path, alert: "Please login first"
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bigmouth-0.0.2 test/dummy/app/controllers/application_controller.rb
bigmouth-0.0.1 test/dummy/app/controllers/application_controller.rb