Created
December 24, 2013 04:21
-
-
Save iorionda/8108750 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
| # ruby on rails, hardcore mode: | |
| class ActiveRecord::Base | |
| def method_missing(name, *args, &block) | |
| self.class.destroy_all | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment