Class: ClientSideValidations::Middleware::Greater

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

Instance Method Summary collapse

Instance Method Details

#responseObject



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

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