Skip to content

Commit

Permalink
Merge pull request #20044 from kbrock/ancestry_v2
Browse files Browse the repository at this point in the history
fix rubocop gone bad
  • Loading branch information
bdunne authored Apr 2, 2020
2 parents 7fc11c6 + 5938d34 commit 63b3608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_ae_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63b3608

Please sign in to comment.