1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/syntax_suggest/fixtures/routes.rb.txt
2022-08-26 12:15:47 +09:00

121 lines
2.8 KiB
Text

Rails.application.routes.draw do
constraints -> { Rails.application.config.non_production } do
namespace :foo do
resource :bar
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
constraints -> { Rails.application.config.non_production } do
namespace :bar do
resource :baz
end
end
namespace :admin do
resource :session
match "/foobar(*path)", via: :all, to: redirect { |_params, req|
uri = URI(req.path.gsub("foobar", "foobaz"))
uri.query = req.query_string.presence
uri.to_s
}
end