title: Bundler.require fails in clean Rails project
body: <p>My rails app fails to load when I have the following line in application.rb:</p>
  
  <pre><code>Bundler.require(:default, Rails.env)
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/initializable.rb:13:in `[]': no implicit conversion of Symbol into Integer (TypeError)
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/initializable.rb:13:in `initialize'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/initializable.rb:85:in `new'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/initializable.rb:85:in `initializer'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@rails-4.0/gems/rolify-3.3.0/lib/rolify/railtie.rb:6:in `&lt;class:Railtie&gt;'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@rails-4.0/gems/rolify-3.3.0/lib/rolify/railtie.rb:5:in `&lt;module:Rolify&gt;'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@rails-4.0/gems/rolify-3.3.0/lib/rolify/railtie.rb:4:in `&lt;top (required)&gt;'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@rails-4.0/gems/rolify-3.3.0/lib/rolify.rb:1:in `&lt;top (required)&gt;'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `each'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `block in require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `each'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.5.1/lib/bundler.rb:131:in `require'
      from /Users/gerardkelly/Web Development/Rails Apps/Rails 4/po-app/config/application.rb:5:in `&lt;top (required)&gt;'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/commands.rb:74:in `require'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/commands.rb:74:in `block in &lt;top (required)&gt;'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap'
      from /Users/gerardkelly/.rvm/gems/ruby-2.0.0-p353@global/gems/railties-4.0.2/lib/rails/commands.rb:71:in `&lt;top (required)&gt;'
      from bin/rails:4:in `require'
      from bin/rails:4:in `&lt;main&gt;'
  </code></pre>
  
  <p>Looks as though it's complaining about the params being sent in - which is odd because this is pre-baked Rails stuff. Note that the Bundler.require is application.rb:5 which its complaining about.</p>
  
  <p>I'm on Rails 4, Ruby 2.0.0</p>