Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
matches_attribute was not being used in tag_match_type; addresses mbl…
Browse files Browse the repository at this point in the history
  • Loading branch information
tekniklr committed Nov 15, 2017
1 parent 4d9a10c commit ac585c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def tag_match_type(tag)
matches_attribute = matches_attribute.lower unless ActsAsTaggableOn.strict_case_match

if options[:wild].present?
tag_arel_table[:name].matches("%#{escaped_tag(tag)}%", "!")
matches_attribute.matches("%#{escaped_tag(tag)}%", "!")
else
tag_arel_table[:name].matches(escaped_tag(tag), "!")
matches_attribute.matches(escaped_tag(tag), "!")
end
end

Expand Down

0 comments on commit ac585c8

Please sign in to comment.