Module: ClientSideValidations::ActiveModel::Inclusion
- Defined in:
- lib/client_side_validations/active_model/inclusion.rb
Instance Method Summary collapse
Instance Method Details
#client_side_hash(model, attribute) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/client_side_validations/active_model/inclusion.rb', line 4 def client_side_hash(model, attribute) hash = super if hash[:in].is_a?(Range) hash[:range] = hash[:in] hash.delete(:in) end hash end |