From a43b603f84397d4a7ebb9ae170704c62b781cf1d Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 3 Jul 2015 17:40:07 +0200 Subject: [PATCH] Applied rubocop cop 'Style/SpaceAroundOperators'. --- lib/models.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models.rb b/lib/models.rb index a61d9d7c6..1ec694f53 100644 --- a/lib/models.rb +++ b/lib/models.rb @@ -102,7 +102,7 @@ returns Rails.logger.debug "FOUND (by ref without class) #{model_class}->#{reflection_value.name} #{count}!" references[:model][model_class.to_s] += count end - if !reflection_value.options[:class_name] && reflection_value.name == object_name.downcase.to_sym + if !reflection_value.options[:class_name] && reflection_value.name == object_name.downcase.to_sym count = model_class.where("#{reflection_value.name}_id = ?", object_id).count next if count == 0 Rails.logger.debug "FOUND (by ref with class) #{model_class}->#{reflection_value.name} #{count}!"