Module: VestalVersions::Deletion::ClassMethods
- Defined in:
- lib/vestal_versions/deletion.rb
Overview
Class methods on ActiveRecord::Base
Instance Method Summary collapse
-
#prepare_versioned_options_with_deletion(options) ⇒ Object
After the original
prepare_versioned_options
method cleans the given options, this alias also extracts the:depedent
if it set to:tracking
.
Instance Method Details
#prepare_versioned_options_with_deletion(options) ⇒ Object
After the original prepare_versioned_options
method cleans the given options, this alias also extracts the :depedent
if it set to :tracking
22 23 24 25 26 27 28 29 30 |
# File 'lib/vestal_versions/deletion.rb', line 22 def () result = () if result[:dependent] == :tracking self.[:track_destroy] = true .delete(:dependent) end result end |