sinatra/sinatra — pull request #708 by rlivsey (2013-04-22 23:10:26+00:00)
Title: Only overwrite pass_block if there's a value

This prevents pass_block from being overwritten with nil which happens when the superclass has (non-matching) routes.

This bites in development as Sinatra::Base registers "get '/__sinatra__/:image.png'" only in development mode, so everything works fine in production but not in development.