Module: Extensions::DestroyCallbacks::ActiveRecord::Base::ClassMethods

Defined in:
lib/extensions/destroy_callbacks/active_record/base.rb

Instance Method Summary collapse

Instance Method Details

#actable(*args) ⇒ Object


6
7
8
9
10
11
# File 'lib/extensions/destroy_callbacks/active_record/base.rb', line 6

def actable(*args)
  args.unshift({}) if args.empty?
  options = args.extract_options!
  args.push(options.reverse_merge(dependent: :destroy))
  super(*args)
end