Module: WaNew::ClientValidate::ActiveModel::Validator
- Defined in:
- lib/wanew/client_validate/active_model/validator.rb
Instance Method Summary collapse
Instance Method Details
#client_hash(model, attribute) ⇒ Object
4 5 6 7 |
# File 'lib/wanew/client_validate/active_model/validator.rb', line 4 def client_hash(model, attribute) = .except(*::ActiveModel::Errors::CALLBACKS_OPTIONS - [:on, :allow_blank]) { :message => model.errors.(attribute, , ) }.merge() end |