Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

ActiveRecord cannot be eager loaded without ActionDispatch

View Gemfile
1 2 3
source :rubygems
 
gem 'activerecord', :require => 'active_record'
View Gemfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
GEM
remote: http://rubygems.org/
specs:
activemodel (3.2.6)
activesupport (= 3.2.6)
builder (~> 3.0.0)
activerecord (3.2.6)
activemodel (= 3.2.6)
activesupport (= 3.2.6)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activesupport (3.2.6)
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
builder (3.0.0)
i18n (0.6.0)
multi_json (1.3.6)
tzinfo (0.3.33)
 
PLATFORMS
ruby
 
DEPENDENCIES
activerecord
View Gemfile

Run this and watch as it explodes:

bundle install
bundle exec ruby test.rb
View Gemfile
1 2 3 4 5
require 'rubygems'
require 'bundler'
Bundler.require :default
 
ActiveSupport::Autoload.eager_autoload!

boom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.