Module: ClientSideValidations::ActiveModel::Validator
- Defined in:
- lib/client_side_validations/active_model.rb
Instance Method Summary collapse
Instance Method Details
#client_side_hash(model, attribute) ⇒ Object
6 7 8 9 10 |
# File 'lib/client_side_validations/active_model.rb', line 6 def client_side_hash(model, attribute) = self..dup { :message => model.errors.(attribute, , ) }. merge(.except(*::ActiveModel::Errors::CALLBACKS_OPTIONS - [:allow_blank, :if, :unless])) end |