Ruby 1.8 can't regex on a symbol (or something)
This commit is contained in:
parent
bcdaad6443
commit
ed9012ef5b
|
@ -127,7 +127,7 @@ module Middleman
|
||||||
def method_missing(method, *args)
|
def method_missing(method, *args)
|
||||||
if defines_setting?(method) && args.size == 0
|
if defines_setting?(method) && args.size == 0
|
||||||
self[method]
|
self[method]
|
||||||
elsif method =~ /^(\w+)=$/ && args.size == 1
|
elsif method.to_s =~ /^(\w+)=$/ && args.size == 1
|
||||||
self[$1.to_sym] = args[0]
|
self[$1.to_sym] = args[0]
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
|
|
Loading…
Reference in a new issue