Class: CustomerServiceIm::ApplicationController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- CustomerServiceIm::ApplicationController
show all
- Includes:
- ActionController::ImplicitRender
- Defined in:
- app/controllers/customer_service_im/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#render_200(data) ⇒ Object
17
18
19
|
# File 'app/controllers/customer_service_im/application_controller.rb', line 17
def render_200(data)
render json: data
end
|
#render_401(errors: nil) ⇒ Object
13
14
15
|
# File 'app/controllers/customer_service_im/application_controller.rb', line 13
def render_401(errors: nil)
render json: { errors: errors }, status: :unauthorized
end
|
#render_422(errors: nil) ⇒ Object
9
10
11
|
# File 'app/controllers/customer_service_im/application_controller.rb', line 9
def render_422(errors: nil)
render json: { errors: errors }, status: :unprocessable_entity
end
|
#render_500(errors: nil) ⇒ Object
5
6
7
|
# File 'app/controllers/customer_service_im/application_controller.rb', line 5
def render_500(errors: nil)
render json: { errors: errors }, status: :internal_server_error
end
|