Sha256: 1e55ed4630b629c573b6140ae8afd6041a89a3b14029e03a136f9ebf9947e6be

Contents?: true

Size: 446 Bytes

Versions: 49

Compression:

Stored size: 446 Bytes

Contents

class ExampleController < ApplicationController

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

  def index
    render :text => "jabberwocky"
  end

  def restricted
    render :text => "restricted kablooie"
  end

  def this_requires_signin_permission
    render :text => "you have signin permission"
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
gds-sso-1.2.1 spec/internal/app/controllers/example_controller.rb
gds-sso-1.2.0 spec/internal/app/controllers/example_controller.rb
gds-sso-1.1.1 spec/internal/app/controllers/example_controller.rb
gds-sso-1.1.0 spec/internal/app/controllers/example_controller.rb
gds-sso-1.0.0 spec/internal/app/controllers/example_controller.rb
gds-sso-0.8.0 spec/internal/app/controllers/example_controller.rb
gds-sso-0.7.9 spec/internal/app/controllers/example_controller.rb
gds-sso-0.7.8 spec/internal/app/controllers/example_controller.rb
gds-sso-0.7.7 spec/internal/app/controllers/example_controller.rb