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

Make Sprockets::Helpers::RailsHelper#debug_assets? more readable #2690

Merged
merged 1 commit into from
Aug 25, 2011

Conversation

dasch
Copy link
Contributor

@dasch dasch commented Aug 25, 2011

Remove some redundant calls and make the code more readable.

@tenderlove
Copy link
Member

Seems good. I wonder though, do people call with debug_assets = false? Why are we explicitly testing for a value?

tenderlove added a commit that referenced this pull request Aug 25, 2011
Make Sprockets::Helpers::RailsHelper#debug_assets? more readable
@tenderlove tenderlove merged commit df948f3 into rails:master Aug 25, 2011
@dasch
Copy link
Contributor Author

dasch commented Aug 25, 2011

@tenderlove I see no reason for it. I'll be more than happy to simply check for the existance of the parameter - should I add it as a separate pull request?

@tenderlove
Copy link
Member

Yes, please send a new pull request. If the tests pass with merely checking for the key, then I'll apply. :-)

EDIT: not just if hash.key? though, we should probably just do if hash[:debug_assets]

@dasch
Copy link
Contributor Author

dasch commented Aug 25, 2011

@tenderlove: I've added a pull request per your comment: #2695.

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