mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Merge pull request #781 from vipulnsward/remove_explicit_blocks
Remove explicit block passing
This commit is contained in:
commit
65a00a2033
1 changed files with 2 additions and 2 deletions
|
@ -1388,7 +1388,7 @@ module Sinatra
|
|||
|
||||
# Set configuration options for Sinatra and/or the app.
|
||||
# Allows scoping of settings for certain environments.
|
||||
def configure(*envs, &block)
|
||||
def configure(*envs)
|
||||
yield self if envs.empty? || envs.include?(environment.to_sym)
|
||||
end
|
||||
|
||||
|
@ -1483,7 +1483,7 @@ module Sinatra
|
|||
private
|
||||
|
||||
# Starts the server by running the Rack Handler.
|
||||
def start_server(handler, server_settings, handler_name, &block)
|
||||
def start_server(handler, server_settings, handler_name)
|
||||
handler.run(self, server_settings) do |server|
|
||||
unless handler_name =~ /cgi/i
|
||||
$stderr.puts "== Sinatra/#{Sinatra::VERSION} has taken the stage " +
|
||||
|
|
Loading…
Reference in a new issue