lib/extr/engine.rb in extr-1.0.4 vs lib/extr/engine.rb in extr-1.0.5
- old
+ new
@@ -19,10 +19,10 @@
keys = ["methods","formHandler"]
(options.keys & keys).each do |key|
unless options[key].nil?
options[key].stringify_keys!.each do |mtd, mcfg|
- method_hash = mcfg.is_a?(Hash) ? {'name' => mtd}.merge!(mcfg) : {'name' => mtd, 'len' => mcfg || 1}
+ method_hash = mcfg.is_a?(Hash) ? {name: mtd}.merge!(mcfg) : {name: mtd, len: mcfg || 1}
method_hash[key]= true if key == "formHandler"
Config.controller_config[ns][action] << method_hash
end
end
#END KEY LOOP