Skip to content

Commit 19dc256

Browse files
committed
Rubocop fix: Style/YodaCondition
1 parent 81002f7 commit 19dc256

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,6 @@ Style/WordArray:
220220
Exclude:
221221
- 'spec/model/orm_spec.rb'
222222

223-
# Offense count: 1
224-
# Cop supports --auto-correct.
225-
# Configuration parameters: EnforcedStyle.
226-
# SupportedStyles: all_comparison_operators, equality_operators_only
227-
Style/YodaCondition:
228-
Exclude:
229-
- 'lib/her/model/associations/association_proxy.rb'
230-
231223
# Offense count: 409
232224
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
233225
# URISchemes: http, https

lib/her/model/associations/association_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def association
2828

2929
# @private
3030
def method_missing(name, *args, &block)
31-
if :object_id == name # avoid redefining object_id
31+
if name == :object_id # avoid redefining object_id
3232
return association.fetch.object_id
3333
end
3434

0 commit comments

Comments
 (0)