Skip to content

Commit

Permalink
refactor search query
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffibm committed Apr 19, 2024
1 parent 71899d6 commit 8770304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_template.rb
Expand Up @@ -33,7 +33,7 @@ def self.eligible_for_provisioning
end

def self.filter_with_name(name)
where("vms.name ILIKE ?", "%#{name}%")
where(arel_table[:name].matches("%#{name}%"))
end

def self.without_volume_templates
Expand Down

0 comments on commit 8770304

Please sign in to comment.