Applied rubocop cop 'Lint/UnusedBlockArgument'.
This commit is contained in:
parent
0acd0b1861
commit
cd800495d8
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ returns
|
||||||
# find relations via reflections
|
# find relations via reflections
|
||||||
list.each {|model_class, model_attributes|
|
list.each {|model_class, model_attributes|
|
||||||
next if !model_attributes[:reflections]
|
next if !model_attributes[:reflections]
|
||||||
model_attributes[:reflections].each {|reflection_key, reflection_value|
|
model_attributes[:reflections].each {|_reflection_key, reflection_value|
|
||||||
|
|
||||||
next if reflection_value.macro != :belongs_to
|
next if reflection_value.macro != :belongs_to
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ returns
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
references[:model].each {|k, v|
|
references[:model].each {|_k, v|
|
||||||
next if v == 0
|
next if v == 0
|
||||||
references[:total] += v
|
references[:total] += v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue