Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add a comment to Gemfile of Rails engines saying not to use groups #8373

Closed
betesh opened this Issue · 2 comments

3 participants

@betesh

In test/dummy/config/application.rb:

Bundler.require

This differs from the corresponding code in Rails apps because it takes no args, so any groups in the Gemfile will be ignored. A comment in the Gemfile that says not to use groups without editing this line would be really helpful.

I realize that to anyone with knowledge of Bundler, debugging this issue would take a matter of minutes, but keep in mind that many Rails developers might have minimal knowledge of Bundler. One of Rails' excellent features is that it allows you to use Bundler without having to get involved in (or have any clue about) the fine details of it. So it took me about 8 hours to figure this out on my own--having never used Bundler.require before--and a large part of the problem is that the error being raised had no search terms that are related to Bundler.

See http://stackoverflow.com/questions/13630456/sass-import-directive-when-used-in-rails-engine-cant-find-assets-in-plugins/13631079#13631079 for the issue I was debugging.

@steveklabnik
Collaborator

Please submit a pull request with this change, as we don't take feature requests on the issue tracker. thanks!

@senny
Owner

This should be fixed now. I submitted a PR #8262 to load the groups too. I've backported the change to 3-2-stable so you can give it a shot.

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.