Last Updated: February 25, 2016
·
617
· AndrewRadev

Rack no-op

if Rails.env.development?
  noop = lambda { |env| [200, {}, []] }

  get '/some/prod/service' => noop
  get '/some/:other/:endpoint' => noop
end