Class: ClientValidationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ClientValidationsController
- Defined in:
- app/controllers/client_validations_controller.rb
Instance Method Summary collapse
-
#uniqueness ⇒ Object
Poll with /client_validations/uniqueness?model_class=User&column=username&value=theusername.
Instance Method Details
#uniqueness ⇒ Object
Poll with /client_validations/uniqueness?model_class=User&column=username&value=theusername. Returns either ‘true’ or ‘false’.
4 5 6 7 |
# File 'app/controllers/client_validations_controller.rb', line 4 def uniqueness responder = ClientValidation.current_adapter.validation_responses[:uniqueness] render :text => responder.respond(params) end |