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
14 15 16 17 18 |
# File 'app/controllers/comply/validations_controller.rb', line 14 def show @instance = validation_instance @instance.valid?(:comply) render json: { error: @instance.errors } end |