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

Merged
merged 1 commit into from Jan 30, 2012
Commits on Jan 30, 2012
  1. @vijaydev

    Fixes #4764 - remove generated new line in routes.rb on scaffold gene…

    vijaydev committed Jan 30, 2012
    …ration
    
    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.