Module: ActiveRecord::Bitemporal::Callbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/activerecord-bitemporal/callbacks.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
13 14 15 |
# File 'lib/activerecord-bitemporal/callbacks.rb', line 13 def destroy(...) perform_bitemporal_callbacks? ? run_callbacks(:bitemporal_destroy) { super } : super end |
#save_without_bitemporal_callbacks! ⇒ Object
17 18 19 20 21 |
# File 'lib/activerecord-bitemporal/callbacks.rb', line 17 def save_without_bitemporal_callbacks!(...) with_bitemporal_option(ignore_bitemporal_callbacks: true) { save!(...) } end |