Created
November 7, 2009 23:20
-
-
Save hone/228944 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
| class HerokuEnvironment | |
| def create_proc | |
| require 'rubygems' | |
| require 'activerecord' | |
| Proc.new {} | |
| end | |
| end | |
| begin | |
| eval("puts ActiveRecord::Base") | |
| rescue | |
| puts $! | |
| end | |
| eval("puts ActiveRecord::Base", HerokuEnvironment.new.create_proc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment