Rack no-op
if Rails.env.development?
noop = lambda { |env| [200, {}, []] }
get '/some/prod/service' => noop
get '/some/:other/:endpoint' => noop
end
Written by Andrew Radev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#