Module: Mongoid::Dirty
- Defined in:
- lib/mongoid_immutable_fields/mongoid_filthy.rb
Instance Method Summary collapse
-
#changed_as_symbols ⇒ Object
returns changed fields as symbols instead of elements.
Instance Method Details
#changed_as_symbols ⇒ Object
returns changed fields as symbols instead of elements
5 6 7 8 9 |
# File 'lib/mongoid_immutable_fields/mongoid_filthy.rb', line 5 def changed_as_symbols changed_as_sym = [] changed.each { |c| changed_as_sym << c.to_sym if c.is_a? String } changed_as_sym end |