Class WordReferencesController
In: app/controllers/word_references_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/word_references_controller.rb, line 18
18:   def conditions_for_collection
19:     [
20:       'words.language_id = ?', 
21:       [
22:         session[:language_dictionary_id]
23:       ]
24:     ]
25:   end

Protected Instance methods

[Source]

    # File app/controllers/word_references_controller.rb, line 41
41:   def create_authorized?
42:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
43:   end

[Source]

    # File app/controllers/word_references_controller.rb, line 45
45:   def destroy_authorized?
46:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
47:   end

[Source]

    # File app/controllers/word_references_controller.rb, line 33
33:   def read_authorized?
34:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
35:   end

[Source]

    # File app/controllers/word_references_controller.rb, line 29
29:   def search_authorized?
30:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
31:   end

[Source]

    # File app/controllers/word_references_controller.rb, line 37
37:   def update_authorized?
38:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
39:   end

[Validate]