Upgrade rubocop and style guide for ruby 2.7 compatibility

This commit is contained in:
Dylan Thacker-Smith
2020-01-09 13:14:32 -05:00
parent 0847bf560f
commit 67eca3f58d
6 changed files with 32 additions and 30 deletions

View File

@@ -60,7 +60,7 @@ module ShopFilter
case style
when 'original'
return '/files/shops/random_number/' + url
'/files/shops/random_number/' + url
when 'grande', 'large', 'medium', 'compact', 'small', 'thumb', 'icon'
"/files/shops/random_number/products/#{Regexp.last_match(1)}_#{style}.#{Regexp.last_match(2)}"
else