From ed9012ef5b76f148bbbe4b1ad09a36d87ee165d5 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 23 May 2013 14:55:26 -0700 Subject: [PATCH] Ruby 1.8 can't regex on a symbol (or something) --- middleman-core/lib/middleman-core/configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/configuration.rb b/middleman-core/lib/middleman-core/configuration.rb index b75c2e8e..b1893db5 100644 --- a/middleman-core/lib/middleman-core/configuration.rb +++ b/middleman-core/lib/middleman-core/configuration.rb @@ -127,7 +127,7 @@ module Middleman def method_missing(method, *args) if defines_setting?(method) && args.size == 0 self[method] - elsif method =~ /^(\w+)=$/ && args.size == 1 + elsif method.to_s =~ /^(\w+)=$/ && args.size == 1 self[$1.to_sym] = args[0] else super