Created
October 22, 2011 00:54
-
-
Save stuffness/1305372 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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