Skip to content

Commit

Permalink
fix rubocop gone bad
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Apr 2, 2020
1 parent 7fc11c6 commit 5938d34
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 5938d34

Please sign in to comment.