Class: ClientSideValidations::Middleware::Uniqueness
- Defined in:
- lib/client_side_validations/middleware.rb
Constant Summary collapse
- IGNORE_PARAMS =
%w{case_sensitive id scope}
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ClientSideValidations::Middleware::Base
Instance Method Details
#response ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/client_side_validations/middleware.rb', line 43 def response if is_unique? self.status = 404 self.body = 'true' else self.status = 200 self.body = 'false' end super end |