Sha256: 0b7a0a24dbe0da4b2b71e8b68684165bc902e1072d3406e4a00c3c0099ced5bb

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

module Cms
  class Tagging < ActiveRecord::Base
    belongs_to :tag, :class_name => 'Cms::Tag'
    belongs_to :taggable, :polymorphic => true, :class_name => 'Cms::Taggable', :foreign_type => 'taggable_type'

    def content_type
      Cms::ContentType.first(:conditions => {:name => taggable_type})
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browsercms-3.4.2 app/models/cms/tagging.rb
browsercms-3.4.2.rc1 app/models/cms/tagging.rb
browsercms-3.4.1 app/models/cms/tagging.rb
browsercms-3.4.0 app/models/cms/tagging.rb
browsercms-3.4.0.rc2 app/models/cms/tagging.rb
browsercms-3.4.0.rc1 app/models/cms/tagging.rb