Module: RailsIdentity::ApplicationHelper
- Included in:
- ApplicationController
- Defined in:
- app/helpers/rails_identity/application_helper.rb
Instance Method Summary collapse
-
#render_error(status, msg) ⇒ Object
Renders a single error.
-
#render_errors(status, msgs) ⇒ Object
Renders multiple errors.
Instance Method Details
#render_error(status, msg) ⇒ Object
Renders a single error.
7 8 9 |
# File 'app/helpers/rails_identity/application_helper.rb', line 7 def render_error(status, msg) render json: {errors: [msg]}, status: status end |
#render_errors(status, msgs) ⇒ Object
Renders multiple errors
14 15 16 |
# File 'app/helpers/rails_identity/application_helper.rb', line 14 def render_errors(status, msgs) render json: {errors: msgs}, status: status end |