Skip to content

Instantly share code, notes, and snippets.

@stuffness
Created October 22, 2011 00:54
Show Gist options
  • Save stuffness/1305372 to your computer and use it in GitHub Desktop.
Save stuffness/1305372 to your computer and use it in GitHub Desktop.
#Should this not cause my record to be deleted after I update it? Doesn't seem to work for me..
class Timer < ActiveRecord::Base
after_save :destroy_timer
private
def destroy_timer
self.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment