Fix Style/IfUnlessModifier

This commit is contained in:
Jared Beck 2016-03-13 20:02:46 -04:00
parent df42beecab
commit 4b3fbab08a
2 changed files with 1 additions and 10 deletions

View File

@ -70,13 +70,6 @@ Style/FirstParameterIndentation:
Exclude:
- 'lib/paper_trail/serializers/json.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Exclude:
- 'test/dummy/config/application.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/Lambda:

View File

@ -54,9 +54,7 @@ module Dummy
end
# `config.assets` is a `NoMethodError` in rails 5.
if config.respond_to?(:assets)
config.assets.enabled = false
end
config.assets.enabled = false if config.respond_to?(:assets)
# Version of your assets, change this if you want to expire all your assets
# config.assets.version = '1.0'