gnugeek-is_taggable 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/lib/is_taggable.rb +2 -2
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/is_taggable.rb
CHANGED
@@ -41,9 +41,9 @@ module IsTaggable
|
|
41
41
|
return [] if tag_or_tags.nil? || tag_or_tags.empty?
|
42
42
|
case tag_or_tags
|
43
43
|
when Array, IsTaggable::TagList
|
44
|
-
all(:include => ['tags', 'taggings'], :conditions => conditions ).select { |record| tag_or_tags.all? { |tag| record.tags.map(&:name).include?(tag) } } || []
|
44
|
+
all(:include => ['tags', 'taggings'], :conditions => conditions ).select { |record| tag_or_tags.all? { |tag| record.tags.map(&:name).map(&:upcase).include?(tag.upcase) } } || []
|
45
45
|
else
|
46
|
-
all(:include => ['tags', 'taggings'], :conditions => conditions).select { |record| record.tags.map(&:name).include?(tag_or_tags) } || []
|
46
|
+
all(:include => ['tags', 'taggings'], :conditions => conditions).select { |record| record.tags.map(&:name).map(&:upcase).include?(tag_or_tags.upcase) } || []
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|