lib/sinatra/contrib/setup.rb in sinatra-contrib-1.3.2 vs lib/sinatra/contrib/setup.rb in sinatra-contrib-1.4.0
- old
+ new
@@ -22,12 +22,12 @@
extensions[method] << name if method
Sinatra.autoload(name, path)
end
def registered(base)
- @extensions.each do |meth, list|
+ @extensions.each do |method, list|
list = list.map { |name| Sinatra.const_get name }
- base.send(meth, *list) unless base == ::Sinatra::Application
+ base.send(method, *list) unless base == ::Sinatra::Application
end
end
end
module Common