Skip to content
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

Remove explicit references to Rails.application.config from AssetPaths in Sprockets helper #2785

Merged
merged 1 commit into from
Sep 1, 2011

Conversation

spohlenz
Copy link
Contributor

@spohlenz spohlenz commented Sep 1, 2011

Moves references to config.assets.compile and config.assets.digest to helper level methods so that they may be overriden.

@@ -83,6 +85,14 @@ module Sprockets
Rails.application.config.assets.digests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this still be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe so. config.assets.digest is a boolean flag whereas config.assets.digests contains the digests which may be loaded from a manifest file. Definitely confusing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, right. I haven't noticed this small detail. :(

josevalim added a commit that referenced this pull request Sep 1, 2011
Remove explicit references to Rails.application.config from AssetPaths in Sprockets helper
@josevalim josevalim merged commit 9bfaef0 into rails:3-1-stable Sep 1, 2011
@josevalim
Copy link
Contributor

Can we have the same for master?

@josevalim
Copy link
Contributor

Merged, thanks.

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.

None yet

2 participants