diff options
author | Damian Terentiev <infusiastic@gmail.com> | 2009-03-12 14:45:55 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-12 14:45:55 +0000 |
commit | 8a17fd1a65ab8e2fa6b36d79603fde0e6ffd083f (patch) | |
tree | 4828d02adf1bf9ba57a6899a090688f8bd71beaf /railties/lib/rails_generator | |
parent | db26ace030f6704da6fc80bcc6cd00a2aee664ce (diff) | |
download | rails-8a17fd1a65ab8e2fa6b36d79603fde0e6ffd083f.tar.gz rails-8a17fd1a65ab8e2fa6b36d79603fde0e6ffd083f.tar.bz2 rails-8a17fd1a65ab8e2fa6b36d79603fde0e6ffd083f.zip |
Fixed that template runner gem method to output :lib => false correctly [#1940 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/template_runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/applications/app/template_runner.rb b/railties/lib/rails_generator/generators/applications/app/template_runner.rb index 73ab57d4f0..3b49b1fa92 100644 --- a/railties/lib/rails_generator/generators/applications/app/template_runner.rb +++ b/railties/lib/rails_generator/generators/applications/app/template_runner.rb @@ -90,7 +90,7 @@ module Rails gems_code = "config.gem '#{name}'" if options.any? - opts = options.inject([]) {|result, h| result << [":#{h[0]} => '#{h[1]}'"] }.sort.join(", ") + opts = options.inject([]) {|result, h| result << [":#{h[0]} => #{h[1].inspect.gsub('"',"'")}"] }.sort.join(", ") gems_code << ", #{opts}" end |