Module: NoFlyList::TaggingRecord

Extended by:
ActiveSupport::Concern
Defined in:
lib/no_fly_list/tagging_record.rb

Overview

This module provides functionality for a tagging table that contains tags relationship for a model.

This concern can be included in models that represent tags to manage the relationship between the tag and the model.

Examples:

Usage

class User::Tagging < ApplicationRecord
  include NoFlyList::TaggingModel
end

Instance Method Summary collapse

Instance Method Details

#inspectObject



17
18
19
# File 'lib/no_fly_list/tagging_record.rb', line 17

def inspect
  "#<#{self.class.name} id: #{id}, tag_name: #{tag_name} >"
end