Module: Sinatra::OptionsRoute

Defined in:
lib/sinatra/options-route.rb

Instance Method Summary collapse

Instance Method Details

#options_route(path, opts = {}, &bk) ⇒ Object

we call the method options_route so as not to confuse with Sinatra::Base.options



6
# File 'lib/sinatra/options-route.rb', line 6

def options_route(path, opts={}, &bk);   route 'OPTIONS',   path, opts, &bk end