module Sequel::Plugins::ColumnsUpdated::InstanceMethods
Attributes
columns_updated[R]
The hash used for updating records. This should only be called in the after_update and after_save hooks.
Private Instance Methods
_save(opts)
click to toggle source
Unset the updated columns hash before returning from save.
Calls superclass method
# File lib/sequel/plugins/columns_updated.rb 33 def _save(opts) 34 super 35 ensure 36 @columns_updated = nil 37 end
_update_columns(columns_updated)
click to toggle source
Store the hash used for updating the record, so it can be accessed in the after_hooks.
Calls superclass method
# File lib/sequel/plugins/columns_updated.rb 27 def _update_columns(columns_updated) 28 @columns_updated = columns_updated 29 super 30 end