Skip to content

Instantly share code, notes, and snippets.

@hone
Created November 8, 2009 04:57
Show Gist options
  • Select an option

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

Select an option

Save hone/229101 to your computer and use it in GitHub Desktop.
>> eval('ActiveRecord')
NameError: (eval):1:in `irb_binding': uninitialized constant ActiveRecord
from (irb):1
from (irb):1
>> b = Kernel.binding
=> #<Binding:0x1bb6128>
>> require 'activerecord'
=> true
>> eval('ActiveRecord', b)
=> ActiveRecord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment