Class CharacterMeaningsController
In: app/controllers/character_meanings_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

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

Protected Instance methods

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

    # File app/controllers/character_meanings_controller.rb, line 51
51:   def update_authorized?
52:     return is_authorized_as?(UserRole::USER_ROLE_USER)
53:   end

[Validate]