Class DefinitionsController
In: app/controllers/definitions_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/definitions_controller.rb, line 33
33:   def conditions_for_collection
34:     [
35:       'definitions.language_id = ?', 
36:       [
37:         session[:language_target_id]
38:       ]
39:     ]
40:   end

Protected Instance methods

[Source]

    # File app/controllers/definitions_controller.rb, line 56
56:   def create_authorized?
57:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
58:   end

[Source]

    # File app/controllers/definitions_controller.rb, line 60
60:   def destroy_authorized?
61:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
62:   end

[Source]

    # File app/controllers/definitions_controller.rb, line 48
48:   def read_authorized?
49:     return is_authorized_as?(UserRole::USER_ROLE_USER)
50:   end

[Source]

    # File app/controllers/definitions_controller.rb, line 44
44:   def search_authorized?
45:     return is_authorized_as?(UserRole::USER_ROLE_USER)
46:   end

[Source]

    # File app/controllers/definitions_controller.rb, line 52
52:   def update_authorized?
53:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
54:   end

[Validate]