Guest User

Untitled

a guest
Apr 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class HerokuEnvironment
  2. def create_proc
  3. require 'rubygems'
  4. require 'activerecord'
  5.  
  6. Proc.new {}
  7. end
  8. end
  9.  
  10. begin
  11. eval("puts ActiveRecord::Base")
  12. rescue
  13. puts $!
  14. end
  15.  
  16. eval("puts ActiveRecord::Base", HerokuEnvironment.new.create_proc)
Add Comment
Please, Sign In to add comment