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 Rails.public_path return a Pathname #7825

Merged
merged 1 commit into from
Oct 3, 2012

Conversation

sikachu
Copy link
Member

@sikachu sikachu commented Oct 3, 2012

I've discussed with @tenderlove earlier, and it seems like it make sense to make Rails.public_path a Pathname, so you can call Pathname methods on it, such as .join. I think this is a useful addition to this method.

@schneems
Copy link
Member

schneems commented Oct 3, 2012

👍 looks useful, and seems like Pathname behaves as a string in most circumstances so backwards compatibility wouldn't be an issue.

rafaelfranca added a commit that referenced this pull request Oct 3, 2012
Make Rails.public_path return a Pathname
@rafaelfranca rafaelfranca merged commit 6b802cd into rails:master Oct 3, 2012
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

3 participants