Method: Protector::Adapters::Sequel::Model#protector_changed
- Defined in:
- lib/protector/adapters/sequel/model.rb
#protector_changed(fields) ⇒ Object
Gathers real values of given fields bypassing restrictions
33 34 35 |
# File 'lib/protector/adapters/sequel/model.rb', line 33 def protector_changed(fields) HashWithIndifferentAccess[fields.map { |x| [x.to_s, @values[x]] }] end |