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.2.6 app/controllers/incline/access_test_controller.rb
incline-0.2.5 app/controllers/incline/access_test_controller.rb
incline-0.2.4 app/controllers/incline/access_test_controller.rb
incline-0.2.3 app/controllers/incline/access_test_controller.rb
incline-0.1.9 app/controllers/incline/access_test_controller.rb
incline-0.1.8 app/controllers/incline/access_test_controller.rb
incline-0.1.7 app/controllers/incline/access_test_controller.rb
incline-0.1.5 app/controllers/incline/access_test_controller.rb