Class: Wobauth::RolesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/wobauth/roles_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_ability

Instance Method Details

#indexObject

GET /roles



9
10
11
12
# File 'app/controllers/wobauth/roles_controller.rb', line 9

def index
  @roles = Role.all
  respond_with(@roles)
end

#showObject

GET /roles/1



15
16
17
# File 'app/controllers/wobauth/roles_controller.rb', line 15

def show
  respond_with(@role)
end