Skip to content

Commit

Permalink
Redefine empty middleware lambda to return env.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianEdwards committed Apr 28, 2012
1 parent 2aefa39 commit 5a553a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cosmos/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

Dir[File.dirname(__FILE__) + '/middleware/*.rb'].each {|file| require file }

::Middleware::Runner.const_set :EMPTY_MIDDLEWARE, lambda { |env| env }

module Cosmos
class Service
attr_accessor :endpoint, :cache_dir
Expand Down

0 comments on commit 5a553a5

Please sign in to comment.