Sha256: 35d5dcce54fd8c4f718ec978b558478b515b8c6a6510f32117a47c7466d56dc8

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

module Categorical
  module Taggable
    extend ActiveSupport::Concern

    included do
      has_many :taggings, as: :taggable, class_name: "::Categorical::Tagging"
      has_many :tags, :through => :taggings, class_name: "::Categorical::Tag"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
categorical-0.0.10 lib/categorical/taggable.rb
categorical-0.0.9.1 lib/categorical/taggable.rb
categorical-0.0.9 lib/categorical/taggable.rb
categorical-0.0.9.rc lib/categorical/taggable.rb
categorical-0.0.8.rc lib/categorical/taggable.rb
categorical-0.0.6.rc lib/categorical/taggable.rb
categorical-0.0.4 lib/categorical/taggable.rb