Skip to content

Instantly share code, notes, and snippets.

@carlcrott
Created November 9, 2012 21:13
Show Gist options
  • Save carlcrott/4048290 to your computer and use it in GitHub Desktop.
Save carlcrott/4048290 to your computer and use it in GitHub Desktop.
class Rails::Boot
def run
load_initializer
Rails::Initializer.class_eval do
def load_gems
@bundler_loaded ||= Bundler.require :default, Rails.env
end
end
Rails::Initializer.run(:set_load_path)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment