From 5377d1672f54bfb1b439772035a51d48423a2a10 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Thu, 6 Jun 2019 13:20:16 +0300 Subject: [PATCH] DEV: Fix linting issue. --- app/models/category.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/category.rb b/app/models/category.rb index 6dc5530e2b4..b149ddd7dbf 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -667,7 +667,7 @@ class Category < ActiveRecord::Base def self.ensure_consistency! Category .joins('LEFT JOIN topics ON categories.topic_id = topics.id AND topics.deleted_at IS NULL') - .where({ topics: { id: nil }}) + .where(topics: { id: nil }) .find_each do |category| category.create_category_definition end