Skip to content

Instantly share code, notes, and snippets.

@xaviershay
Created November 27, 2010 23:41
Show Gist options
  • Select an option

  • Save xaviershay/718394 to your computer and use it in GitHub Desktop.

Select an option

Save xaviershay/718394 to your computer and use it in GitHub Desktop.
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