Module: ConfirmDestroyAll

Defined in:
lib/confirm_destroy_all.rb,
lib/confirm_destroy_all/railtie.rb,
lib/confirm_destroy_all/version.rb

Defined Under Namespace

Classes: Railtie

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#destroy_allObject



5
6
7
8
9
10
# File 'lib/confirm_destroy_all.rb', line 5

def destroy_all
  confirm_input = get_confirmation_input # Chama o método de entrada
  return unless confirm_input == 'yes'

  super
end