Skip to content

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 authored and Kirill Shirinkin committed Jun 4, 2018
1 parent 629db74 commit da6d03f
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 da6d03f

Please sign in to comment.