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

Fixes #4764 - remove generated new line in routes.rb on scaffold generation #4765

Merged
merged 1 commit into from Jan 30, 2012

Conversation

vijaydev
Copy link
Member

As explained in #4764, when destroying a scaffold, routes.rb loses a new line. This seems to happen because a new line is added while generating the route and the destroy generator removes it. However, this causes a problem if the routes file is manually edited to remove such new lines.

This commit just removes that extra new line from added in the first place.

… generation

As explained in rails#4764, when destroying a scaffold, routes.rb loses a
new line. This seems to happen because a new line is added
while generating the route and the destroy generator removes it.
However, this causes a problem if the routes file is manually edited
to remove such new lines. This commit just removes that extra new line
from added in the first place.
spastorino added a commit that referenced this pull request Jan 30, 2012
Fixes #4764 - remove generated new line in routes.rb on scaffold generation
@spastorino spastorino merged commit 7cdb122 into rails:master Jan 30, 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

2 participants