diff options
author | Will Fisher <will@gina.alaska.edu> | 2015-12-18 17:54:54 -0900 |
---|---|---|
committer | Will Fisher <will@gina.alaska.edu> | 2015-12-21 06:06:30 -0900 |
commit | 12dd2ca86397794a0b07c4c775fded7010a20e7e (patch) | |
tree | 3dcec91688f3499db4940d7bcbe16e0bef1c31b8 /railties/lib/rails/generators | |
parent | 0af3722335795c6b7c0ff557d229e47566dfbed2 (diff) | |
download | rails-12dd2ca86397794a0b07c4c775fded7010a20e7e.tar.gz rails-12dd2ca86397794a0b07c4c775fded7010a20e7e.tar.bz2 rails-12dd2ca86397794a0b07c4c775fded7010a20e7e.zip |
Fixes using `add_source` with a block after using `gem` in a custom rails
generator template.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index 5bbd2f1aed..cd83175da8 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -75,7 +75,7 @@ module Rails in_root do if block - append_file "Gemfile", "source #{quote(source)} do", force: true + append_file "Gemfile", "\nsource #{quote(source)} do", force: true @in_group = true instance_eval(&block) @in_group = false |