From 57a4827274e7fa5effa9386237ac47830364dcd1 Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Tue, 17 Oct 2023 16:00:01 -0500 Subject: [PATCH] linter --- Gemfile | 5 +---- config/routes.rb | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 93188e60..fd28fe24 100644 --- a/Gemfile +++ b/Gemfile @@ -190,14 +190,11 @@ gem "active_hash" # A great debugger. gem "pry" -# A great debugger. -gem "pry" - # We specify this gem here so that we can get the auto-generated links on headers in the docs # https://github.com/bullet-train-co/bullet_train-core/pull/468 # Once commonmarker 1.x is no longer a pre-release we'll bump the main `bullet_train` dependency # and then we can remove this from our Gemfile. -gem 'commonmarker', '~> 1.0.0.pre10' +gem "commonmarker", "~> 1.0.0.pre10" # YOUR GEMS # You can add any Ruby gems you need below. By keeping them separate from our gems above, you'll avoid the likelihood diff --git a/config/routes.rb b/config/routes.rb index 45b6bf57..0e691299 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,8 +5,8 @@ draw "sidekiq" # TODO Move this into a `draw "heroku"` helper from BT. - constraints(:host => /herokuapp.com/) do - match "/(*path)" => redirect {|params, req| "#{ENV['BASE_URL']}/#{params[:path]}"}, via: [:get, :post] + constraints(host: /herokuapp.com/) do + match "/(*path)" => redirect { |params, req| "#{ENV["BASE_URL"]}/#{params[:path]}" }, :via => [:get, :post] end # `collection_actions` is automatically super scaffolded to your routes file when creating certain objects.