Class: LesliVault::Role::ActivitiesController
- Inherits:
-
ApplicationController
- Object
- Lesli::ApplicationLesliController
- ApplicationController
- LesliVault::Role::ActivitiesController
- Defined in:
- app/controllers/lesli_vault/role/activities_controller.rb
Instance Method Summary collapse
-
#index ⇒ HTML|JSON
The HTTP request has to specify wheter the HTML or the JSON text should be rendered.
-
#options ⇒ Json
Json that contains all the information needed to create a new role_activity.
Instance Method Details
#index ⇒ HTML|JSON
The HTTP request has to specify wheter the HTML or the JSON text should be rendered
42 43 44 45 46 47 48 49 50 51 |
# File 'app/controllers/lesli_vault/role/activities_controller.rb', line 42 def index respond_to do |format| format.html {} format.json do return respond_with_not_found unless @role respond_with_successful(Role::Activity.index(@role, @query)) end end end |