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



16
17
18
19
20
# File 'app/controllers/comply/validations_controller.rb', line 16

def show
  @instance = validation_instance
  @instance.valid?
  render json: { error: @instance.errors }
end