Class: Comply::ValidationsController

Inherits:
ApplicationController show all
Includes:
ActiveModel::ForbiddenAttributesProtection
Defined in:
app/controllers/comply/validations_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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