Add category scope and category? method to ActsAsTaggableOn::Tag
This commit is contained in:
@@ -29,6 +29,12 @@ module ActsAsTaggableOn
|
||||
|
||||
Tag.class_eval do
|
||||
|
||||
scope :category, -> { where(kind: "category") }
|
||||
|
||||
def category?
|
||||
kind == "category"
|
||||
end
|
||||
|
||||
include Graphqlable
|
||||
|
||||
scope :public_for_api, -> do
|
||||
|
||||
Reference in New Issue
Block a user