Class SentenceReferencesController
In: app/controllers/sentence_references_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/sentence_references_controller.rb, line 17
17:   def conditions_for_collection
18:     [
19:       'sentences.language_id = ?', 
20:       [
21:         session[:language_target_id]
22:       ]
23:     ]
24:   end

Protected Instance methods

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Validate]