Skip to content

Only access environment directly in configure block #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2015
Merged

Conversation

josh
Copy link
Contributor

@josh josh commented Mar 23, 2015

Should fix some issues mentioned by @rafaelfranca and @lucasmazza over on rails/sprockets#10 (comment).

This should work even on really old sprockets-rails versions. Might want to get this backported to the 4-0-stable branch here.

Kinda wanted to add some test matrix coverage here to try to show this fails and fixes the issue on newer sprockets-rails versions.

@lucasmazza
Copy link
Contributor

This changes the exception raised from Sass::SyntaxError: File to import not found or unreadable: layouts/* to a Sprockets::FileNotFound: couldn't find file 'RAILS_ROOT/assets/stylesheets/layouts'.

But at least we have the expected constant registered on the Rails.application.assets.engines Hash.

josh added a commit that referenced this pull request Mar 23, 2015
Only access environment directly in configure block
@josh josh merged commit 8f352e4 into master Mar 23, 2015
@josh josh deleted the configure-block branch March 23, 2015 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants