Class: BaseTagging

Inherits:
ApplicationRecord show all
Defined in:
lib/needle_in_a_haystack/concerns/base_tagging.rb

Direct Known Subclasses

HaystackTagging

Instance Method Summary collapse

Instance Method Details

#tagObject

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/needle_in_a_haystack/concerns/base_tagging.rb', line 4

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

#taggableObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/needle_in_a_haystack/concerns/base_tagging.rb', line 8

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