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, line 33 def _save(opts) super ensure @columns_updated = nil 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, line 27 def _update_columns(columns_updated) @columns_updated = columns_updated super end