Created
November 27, 2010 23:41
-
-
Save xaviershay/718394 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 1a5790235e7a8a996b9f50789a4d5c3d9defb03b Mon Sep 17 00:00:00 2001 | |
| From: Xavier Shay <[email protected]> | |
| Date: Sun, 28 Nov 2010 10:42:43 +1100 | |
| Subject: [PATCH] Allow http templates again, fix the broken test | |
| --- | |
| railties/lib/rails/generators/app_base.rb | 2 +- | |
| 1 files changed, 1 insertions(+), 1 deletions(-) | |
| diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb | |
| index a560888..2d0c10e 100644 | |
| --- a/railties/lib/rails/generators/app_base.rb | |
| +++ b/railties/lib/rails/generators/app_base.rb | |
| @@ -102,7 +102,7 @@ module Rails | |
| def set_default_accessors! | |
| self.rails_template = case options[:template] | |
| - when /^https:\/\// | |
| + when /^https?:\/\// | |
| options[:template] | |
| when String | |
| File.expand_path(options[:template], Dir.pwd) | |
| -- | |
| 1.7.3.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment