Skip to content

Commit

Permalink
Revert "matches_attribute was not being used in tag_match_type; addre…
Browse files Browse the repository at this point in the history
…sses mbleigh#869"

This reverts commit ac585c8.
  • Loading branch information
Kirill Shirinkin committed Jun 5, 2018
1 parent 04e6758 commit bc7ec0d
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?
matches_attribute.matches("%#{escaped_tag(tag)}%", "!")
tag_arel_table[:name].matches("%#{escaped_tag(tag)}%", "!")
else
matches_attribute.matches(escaped_tag(tag), "!")
tag_arel_table[:name].matches(escaped_tag(tag), "!")
end
end

Expand Down

0 comments on commit bc7ec0d

Please sign in to comment.