Class: Comply::ValidationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Comply::ValidationsController
- Includes:
- ActiveModel::ForbiddenAttributesProtection
- Defined in:
- app/controllers/comply/validations_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/comply/validations_controller.rb', line 9 def show ActiveSupport::Deprecation.warn('GET support going away: use POST to access this endpoint') if request.request_method == 'GET' @instance = validation_instance @instance.valid?(validation_context) render json: { error: @instance.errors } end |