module Tagliani::Concerns::Taggable

Public Class Methods

included(base) click to toggle source
# File lib/tagliani/concerns/taggable.rb, line 8
def self.included(base)
  base.class_eval do
    after_save :inherit_tags, if: proc { self.tags.root }
  end
end

Public Instance Methods

tags() click to toggle source
# File lib/tagliani/concerns/taggable.rb, line 14
def tags
  Tags.new(self)
end

Private Instance Methods

inherit_tags() click to toggle source
# File lib/tagliani/concerns/taggable.rb, line 20
def inherit_tags
  tags.inherit
end