Permalink
Browse files

#add_source: Fixed docco + added required newline to line added to Ge…

…mfile

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
drnic authored and josevalim committed Feb 22, 2010
1 parent bf9a0ae commit b56b9ee7d6807d8ea9e1575afb7a28e89980b348
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/generators/actions.rb
@@ -89,12 +89,12 @@ def gem(*args)
#
# ==== Example
#
- # source "http://gems.github.com/"
+ # add_source "http://gems.github.com/"
def add_source(source, options={})
log :source, source
in_root do
- prepend_file "Gemfile", "source #{source.inspect}", :verbose => false
+ prepend_file "Gemfile", "source #{source.inspect}\n", :verbose => false
end
end

0 comments on commit b56b9ee

Please sign in to comment.