aq1018/mongoid_taggable_with_context — Issue #14: Adding instance method has_tag?
Author: yeggeps
Created: 2012-02-21 14:59:44+00:00
State: open

Is this something that could be added to the gem?

```
# Public: Checks whether the subject has a tag or not
#
# tag - The Symbol name of the tag
#
# Returns Boolean
def has_tag?(tag)
self.tag_array_attributes.any? { |a| self.send(a).include?(tag.to_s) }
end
```