Sha256: ff528d6f5b84f4ac7a6cf00390591c1e34711be34b5b0c827ad42407d2f8c022

Contents?: true

Size: 554 Bytes

Versions: 48

Compression:

Stored size: 554 Bytes

Contents

module Incline
  class AccessTestController < ActionController::Base

    require_anon :test_require_anon
    allow_anon :test_allow_anon
    require_admin :test_require_admin

    def test_require_anon
      render text: 'OK'
    end

    def test_allow_anon
      render text: 'OK'
    end

    def test_require_admin
      render text: 'OK'
    end

    def test_require_user
      render text: 'OK'
    end

    # Fixtures should define 'Group 1' as being a group for this action.
    def test_require_group
      render text: 'OK'
    end

  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 app/controllers/incline/access_test_controller.rb
incline-0.3.13 app/controllers/incline/access_test_controller.rb
incline-0.3.12 app/controllers/incline/access_test_controller.rb
incline-0.3.11 app/controllers/incline/access_test_controller.rb
incline-0.3.10 app/controllers/incline/access_test_controller.rb
incline-0.3.9 app/controllers/incline/access_test_controller.rb
incline-0.3.8 app/controllers/incline/access_test_controller.rb
incline-0.3.7 app/controllers/incline/access_test_controller.rb
incline-0.3.6 app/controllers/incline/access_test_controller.rb
incline-0.3.5 app/controllers/incline/access_test_controller.rb
incline-0.3.4 app/controllers/incline/access_test_controller.rb
incline-0.3.3 app/controllers/incline/access_test_controller.rb
incline-0.3.2 app/controllers/incline/access_test_controller.rb
incline-0.3.1 app/controllers/incline/access_test_controller.rb
incline-0.3.0 app/controllers/incline/access_test_controller.rb
incline-0.2.36 app/controllers/incline/access_test_controller.rb
incline-0.2.35 app/controllers/incline/access_test_controller.rb
incline-0.2.34 app/controllers/incline/access_test_controller.rb
incline-0.2.28 app/controllers/incline/access_test_controller.rb
incline-0.2.27 app/controllers/incline/access_test_controller.rb