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

Add support for the filename method from sprockets environment #45

Merged
merged 1 commit into from
Jul 24, 2016
Merged

Add support for the filename method from sprockets environment #45

merged 1 commit into from
Jul 24, 2016

Conversation

simon2k
Copy link
Contributor

@simon2k simon2k commented Jul 22, 2016

Hi guys,

I found that after updating rails to 5.0.0 along with sprockets, the app uses Sprockets::Environment as assets finder, therefore, it returns object Sprockets::Assetwhich does not respond to pathname. I looked it up, and the method was moved to deprecated and later replaced with a new one: filename. This PR adds support for both methods: pathname & filename. Could you check it out, give feedback & merge? Thanks!

@jamesmartin jamesmartin added this to the 0.10.0 milestone Jul 24, 2016
@jamesmartin jamesmartin merged commit e38e92d into jamesmartin:master Jul 24, 2016
@jamesmartin
Copy link
Owner

Thanks @simon2k! ⚡

Released in v0.10.0.

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