Skip to content

Instantly share code, notes, and snippets.

@hone
Created November 7, 2009 23:20
Show Gist options
  • Select an option

  • Save hone/228944 to your computer and use it in GitHub Desktop.

Select an option

Save hone/228944 to your computer and use it in GitHub Desktop.
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