Sha256: cf86cde62d12d9db067e21e344bccba2fc218c1b2c7aac70303e612fd23a2c87

Contents?: true

Size: 437 Bytes

Versions: 9

Compression:

Stored size: 437 Bytes

Contents

class ExampleController < ApplicationController

  before_action :authenticate_user!, :only => [:restricted, :this_requires_signin_permission]
  before_action :require_signin_permission!, only: [:this_requires_signin_permission]

  def index
    render body: "jabberwocky"
  end

  def restricted
    render body: "restricted kablooie"
  end

  def this_requires_signin_permission
    render body: "you have signin permission"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gds-sso-13.6.0 spec/internal/app/controllers/example_controller.rb
gds-sso-13.5.1 spec/internal/app/controllers/example_controller.rb
gds-sso-13.5.0 spec/internal/app/controllers/example_controller.rb
gds-sso-13.4.0 spec/internal/app/controllers/example_controller.rb
gds-sso-13.3.0 spec/internal/app/controllers/example_controller.rb
gds-sso-13.2.1 spec/internal/app/controllers/example_controller.rb
gds-sso-13.2.0 spec/internal/app/controllers/example_controller.rb
gds-sso-13.1.0 spec/internal/app/controllers/example_controller.rb
gds-sso-13.0.0 spec/internal/app/controllers/example_controller.rb