Class UsersController
In: app/controllers/users_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/users_controller.rb, line 25
25:   def localize
26:     config.label   = User.human_name
27:     config.columns[:email].label      = User.human_attribute_name('email')
28:     config.columns[:first_name].label = User.human_attribute_name('first_name')
29:     config.columns[:last_name].label  = User.human_attribute_name('last_name')
30:     config.columns[:user_role].label  = User.human_attribute_name('user_role')
31:     
32:   end

Protected Instance methods

[Source]

    # File app/controllers/users_controller.rb, line 48
48:   def create_authorized?
49:     false
50:   end

[Source]

    # File app/controllers/users_controller.rb, line 52
52:   def destroy_authorized?
53:     return is_authorized_as?(UserRole::USER_ROLE_ROOT)
54:   end

[Source]

    # File app/controllers/users_controller.rb, line 40
40:   def read_authorized?
41:     return is_authorized_as?(UserRole::USER_ROLE_USER)
42:   end

[Source]

    # File app/controllers/users_controller.rb, line 36
36:   def search_authorized?
37:     return is_authorized_as?(UserRole::USER_ROLE_USER)
38:   end

[Source]

    # File app/controllers/users_controller.rb, line 44
44:   def update_authorized?
45:     return is_authorized_as?(UserRole::USER_ROLE_ROOT)
46:   end

[Validate]