Class: Role::ActivitiesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Role::ActivitiesController
- Defined in:
- app/controllers/lesli_guard/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_guard/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 |
#options ⇒ Json
Returns Json that contains all the information needed to create a new role_activity.
59 60 61 |
# File 'app/controllers/lesli_guard/role/activities_controller.rb', line 59 def respond_with_successful(Role::Activity.(current_user, @query)) end |