Class: Incline::AccessTestController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/incline/access_test_controller.rb

Instance Method Summary collapse

Instance Method Details

#test_allow_anonObject



12
13
14
# File 'app/controllers/incline/access_test_controller.rb', line 12

def test_allow_anon
  render text: 'OK'
end

#test_require_adminObject



16
17
18
# File 'app/controllers/incline/access_test_controller.rb', line 16

def test_require_admin
  render text: 'OK'
end

#test_require_anonObject



8
9
10
# File 'app/controllers/incline/access_test_controller.rb', line 8

def test_require_anon
  render text: 'OK'
end

#test_require_groupObject

Fixtures should define ‘Group 1’ as being a group for this action.



25
26
27
# File 'app/controllers/incline/access_test_controller.rb', line 25

def test_require_group
  render text: 'OK'
end

#test_require_userObject



20
21
22
# File 'app/controllers/incline/access_test_controller.rb', line 20

def test_require_user
  render text: 'OK'
end