# File lib/sinatra/rabbit.rb, line 250 def generate_options current_collection = self Rabbit::routes << [:options, "#{settings.root_url}/#{name}"] ::Sinatra::Application.options("#{settings.root_url}/#{name}") do operations_allowed = current_collection.operations.collect { |o| o[0] }.join(',') headers 'X-Operations-Allowed' => operations_allowed [200, ''] end end