Class: ClientSideValidations::Middleware::Different

Inherits:
Base
  • Object
show all
Defined in:
lib/evelpidon_validators/different.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



19
20
21
22
# File 'lib/evelpidon_validators/different.rb', line 19

def response
  self.status = ActiveModel::Validations::DifferentValidator.different?(request.params[:value], request.params[:than]) ? 200 : 404
  super
end