Skip to content

Commit

Permalink
Remove remaining extra config and fix single issue
Browse files Browse the repository at this point in the history
[1..-1] has the same behaviour for strings as [1..], even if the
string is empty.
  • Loading branch information
Ben Thorner committed Nov 9, 2021
1 parent 35f733d commit f84d1b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ inherit_mode:
merge:
- Exclude

AllCops:
TargetRubyVersion: 2.5

Rails/SaveBang:
AllowedReceivers:
- Elasticsearch::Model.client.indices
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
match "*path",
to: redirect(domain: ENV["CKAN_DOMAIN"], subdomain: "", path: "/%{path}"),
via: :all,
constraints: { path: /(?!#{Regexp.quote(Rails.application.config.assets.prefix[1..-1])}).+/ }
constraints: { path: /(?!#{Regexp.quote(Rails.application.config.assets.prefix[1..])}).+/ }
end
end

0 comments on commit f84d1b5

Please sign in to comment.