Class: ClientSideValidations::Middleware::Less
- Inherits:
-
Base
- Object
- Base
- ClientSideValidations::Middleware::Less
- Defined in:
- lib/evelpidon_validators/less.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
19 20 21 22 |
# File 'lib/evelpidon_validators/less.rb', line 19 def response self.status = ActiveModel::Validations::LessValidator.less?(request.params[:value], request.params[:than]) ? 200 : 404 super end |