Class CharacterQueriesController
In: app/controllers/character_queries_controller.rb
Parent: ApplicationController

Methods

Protected Instance methods

[Source]

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

[Source]

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

[Source]

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

def conditions_for_collection

  [
    'character_readings.language_id = ?',
    [
      session[:language_dictionary_id]
    ]
  ]

end

[Source]

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

[Source]

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

[Validate]