Class SentencesController
In: app/controllers/sentences_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/sentences_controller.rb, line 35
35:   def conditions_for_collection
36:     [     
37:       'sentences.language_id = ?', 
38:       [
39:         session[:language_dictionary_id]
40:       ]    
41:     ]
42:   end

Protected Instance methods

[Source]

    # File app/controllers/sentences_controller.rb, line 58
58:   def create_authorized?
59:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
60:   end

[Source]

    # File app/controllers/sentences_controller.rb, line 62
62:   def destroy_authorized?
63:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
64:   end

[Source]

    # File app/controllers/sentences_controller.rb, line 50
50:   def read_authorized?
51:     return is_authorized_as?(UserRole::USER_ROLE_USER)
52:   end

[Source]

    # File app/controllers/sentences_controller.rb, line 46
46:   def search_authorized?
47:     return is_authorized_as?(UserRole::USER_ROLE_USER)
48:   end

[Source]

    # File app/controllers/sentences_controller.rb, line 54
54:   def update_authorized?
55:     return is_authorized_as?(UserRole::USER_ROLE_USER)
56:   end

[Validate]