From e6be33f1ddafdb3e85b9809d0280439fc83559ae Mon Sep 17 00:00:00 2001 From: Hirofumi Wakasugi Date: Thu, 25 Jun 2015 15:25:49 +0900 Subject: cherry-pick test and source doc from #20050 --- guides/source/generators.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'guides/source') diff --git a/guides/source/generators.md b/guides/source/generators.md index 14f451cbc9..32bbdc554a 100644 --- a/guides/source/generators.md +++ b/guides/source/generators.md @@ -503,6 +503,14 @@ Adds a specified source to `Gemfile`: add_source "http://gems.github.com" ``` +This method also takes a block: + +```ruby +add_source "http://gems.github.com" do + gem "rspec-rails" +end +``` + ### `inject_into_file` Injects a block of code into a defined position in your file. -- cgit v1.2.3