Class: Cats::Core::MenusController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Cats::Core::MenusController
- Defined in:
- app/controllers/cats/core/menus_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#authenticate, #current_user, #skip_bullet
Instance Method Details
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/cats/core/menus_controller.rb', line 6 def index = @service.(current_user) data = ActiveModelSerializers::SerializableResource.new(, each_serializer: RoleMenuSerializer) render json: {success: true, data: data} end |