Module: VestalVersions::Deletion::ClassMethods
- Defined in:
- lib/vestal_versions/deletion.rb
Overview
Class methods on ActiveRecord::Base
Instance Method Summary (collapse)
-
- (Object) prepare_versioned_options(options)
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
- (Object) prepare_versioned_options(options)
After the original prepare_versioned_options method cleans the given options, this alias also extracts the :depedent if it set to :tracking
15 16 17 18 19 20 21 22 23 |
# File 'lib/vestal_versions/deletion.rb', line 15 def () result = super() if result[:dependent] == :tracking self.[:track_destroy] = true .delete(:dependent) end result end |