Last Updated: February 25, 2016
·
561
· AndrewRadev

Rack no-op

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

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