From 5938d3446bf4a4d2a15efd64e4d7e0f08e5e2adf Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Thu, 2 Apr 2020 15:12:30 -0400 Subject: [PATCH] fix rubocop gone bad --- app/models/miq_ae_class.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/miq_ae_class.rb b/app/models/miq_ae_class.rb index 3f504ed41d3..a46984dd88d 100644 --- a/app/models/miq_ae_class.rb +++ b/app/models/miq_ae_class.rb @@ -29,7 +29,7 @@ def self.lookup_by_namespace_and_name(name_space, name, _args = {}) name_space = MiqAeNamespace.lookup_by_fqname(name_space) return nil if name_space.nil? - find_by(:namespace_id => name_space.id).where(arel_table[:name].lower.eq(name.downcase)) + where(:namespace_id => name_space.id).find_by(arel_table[:name].lower.eq(name.downcase)) end singleton_class.send(:alias_method, :find_by_namespace_and_name, :lookup_by_namespace_and_name)