rubocop Style/AndOr style enabled
This commit is contained in:
parent
f8784fdcd8
commit
4aa1f0bf3a
3 changed files with 5 additions and 7 deletions
|
|
@ -88,6 +88,10 @@ Style/AlignHash:
|
||||||
Style/AlignParameters:
|
Style/AlignParameters:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
# Use && instead of and, use || instead of or
|
||||||
|
Style/AndOr:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
Include:
|
Include:
|
||||||
- '**/Rakefile'
|
- '**/Rakefile'
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/AndOr:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
Style/BlockNesting:
|
Style/BlockNesting:
|
||||||
Max: 4
|
Max: 4
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base
|
||||||
helper_method :date_string
|
helper_method :date_string
|
||||||
|
|
||||||
def store_location
|
def store_location
|
||||||
session[:return_to] = request.fullpath if request.get? and controller_name != "user_sessions" and controller_name != "sessions"
|
session[:return_to] = request.fullpath if request.get? && controller_name != "user_sessions" && controller_name != "sessions"
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue