lib/grape/app.rb in grape-app-0.6.2 vs lib/grape/app.rb in grape-app-0.6.3

- old
+ new

@@ -67,10 +67,12 @@ def middleware config = self.config @middleware ||= Rack::Builder.new do use Rack::Cors, &config.cors if config.cors use Rack::SslEnforcer if config.force_ssl - instance_eval(&config.middleware) if config.middleware + config.middleware.each do |block| + instance_eval(&block) + end run Grape::App end end