Skip to content

Instantly share code, notes, and snippets.

@pbalduino
Last active July 12, 2016 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbalduino/bfd84ac3175a012efcd1e2f01f6833b8 to your computer and use it in GitHub Desktop.
Save pbalduino/bfd84ac3175a012efcd1e2f01f6833b8 to your computer and use it in GitHub Desktop.
config/boot.rb - Usando Bundler Com Rails 2.3 - https://medium.com/@pbalduino/usando-bundler-com-rails-2-3-d771f9f1d9c0
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