Skip to content

Instantly share code, notes, and snippets.

@Mikr0Tik
Created October 9, 2008 12:20
Show Gist options
  • Save Mikr0Tik/15760 to your computer and use it in GitHub Desktop.
Save Mikr0Tik/15760 to your computer and use it in GitHub Desktop.
def destroy
callback(:before_destroy)
update_attribute_with_validation_skipping :inaktiv, true # i'd like to skip the after_update callback raised by update_attribute_with_validation_skipping
freeze
callback(:after_destroy)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment