Module: Sequel::Plugins::InputTransformer::InstanceMethods
- Defined in:
- lib/sequel/plugins/input_transformer.rb
Instance Method Summary collapse
-
#[]=(k, v) ⇒ Object
Transform the input using all of the transformers, except those explicitly skipped, before setting the value in the model object.
Instance Method Details
#[]=(k, v) ⇒ Object
Transform the input using all of the transformers, except those explicitly skipped, before setting the value in the model object.
80 81 82 83 84 85 |
# File 'lib/sequel/plugins/input_transformer.rb', line 80 def []=(k, v) model.input_transformers.reverse_each do |name, transformer| v = transformer.call(v) unless model.skip_input_transformer?(name, k) end super end |