From 189857bb187d927eefdc538c9dc4ddcf7d873391 Mon Sep 17 00:00:00 2001 From: Dr Nic Williams Date: Mon, 22 Feb 2010 22:43:54 +1000 Subject: [PATCH] #add_source: Fixed docco + added required newline to line added to Gemfile --- railties/lib/rails/generators/actions.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index e39fa3f..7dec4d4 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -89,12 +89,12 @@ module Rails # # ==== 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 -- 1.6.5