Fix finding bundler #894

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

mpapis commented May 17, 2012

it's related to this SO answer: http://stackoverflow.com/questions/10610254/cant-install-compass-via-rvm/10611366#10611366

I was talking to @wycats and there are two possible solutions:

  1. detect if Gemfile is in effect - this pull request:
if defined?(Bundler)
  require 'bundler/shared_helpers'
  Bundler.require :assets if Bundler::SharedHelpers.in_bundle?
end
  1. detect if Bundlr.setup was called:
if defined?(Bundler) && Bundler.instance_variable_defined?("@setup")
  Bundler.require :assets
end
Owner

chriseppstein commented May 28, 2012

merged as a368a57

Owner

chriseppstein commented May 28, 2012

Thanks for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment