Apply Style/OrAssignment rubocop rule

This commit is contained in:
Javi Martín
2019-10-26 13:11:46 +02:00
parent 8b5cca746c
commit 69c01df63e
2 changed files with 4 additions and 2 deletions

View File

@@ -397,6 +397,9 @@ Style/MutableConstant:
Style/Not:
Enabled: true
Style/OrAssignment:
Enabled: true
Style/PercentLiteralDelimiters:
Enabled: true

View File

@@ -62,7 +62,6 @@ class Admin::BannersController < Admin::BaseController
end
def resource
@banner = Banner.find(params[:id]) unless @banner
@banner
@banner ||= Banner.find(params[:id])
end
end