Created
November 25, 2011 07:33
-
-
Save johnmdonahue/1392998 to your computer and use it in GitHub Desktop.
Modified gem action str with leading newline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://github.com/rails/rails/blob/master/railties/lib/rails/generators/actions.rb#L70-74 | |
# rails/railties/lib/rails/generators/actions.rb | |
# FROM: | |
in_root do | |
str = "gem #{parts.join(", ")}\n" | |
str = " " + str if @in_group | |
append_file "Gemfile", str, :verbose => false | |
end | |
# TO: | |
in_root do | |
str = "\ngem #{parts.join(", ")}\n" | |
str = " " + str if @in_group | |
append_file "Gemfile", str, :verbose => false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment