Sha256: 103e2fcad9931998d20725326a5a712c6c2281a0427ef66e3aa6d5dbd273cc44

Contents?: true

Size: 259 Bytes

Versions: 7

Compression:

Stored size: 259 Bytes

Contents

class BaseTagging < ApplicationRecord
  self.abstract_class = true

  def tag
    raise NotImplementedError, "Subclasses must implement a tag-method"
  end

  def taggable
    raise NotImplementedError, "Subclasses must implement a taggable-method"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
needle_in_a_haystack-1.1.0 lib/needle_in_a_haystack/concerns/base_tagging.rb
needle_in_a_haystack-1.0.8 lib/needle_in_a_haystack/concerns/base_tagging.rb
needle_in_a_haystack-1.0.7 lib/needle_in_a_haystack/concerns/base_tagging.rb
needle_in_a_haystack-1.0.6 lib/needle_in_a_haystack/concerns/base_tagging.rb
needle_in_a_haystack-1.0.5 lib/needle_in_a_haystack/concerns/base_tagging.rb
needle_in_a_haystack-1.0.4 lib/needle_in_a_haystack/concerns/base_tagging.rb
needle_in_a_haystack-1.0.3 lib/needle_in_a_haystack/concerns/base_tagging.rb