Sha256: b31108785ef694ff000084e8040fec4d9cf01b094e516c420b3d5301ed6ee79d

Contents?: true

Size: 385 Bytes

Versions: 11

Compression:

Stored size: 385 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'

    include DefaultAccessible
    attr_accessible :tag, :taggable

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

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/models/cms/tagging.rb
browsercms-3.5.6 app/models/cms/tagging.rb
browsercms-3.5.5 app/models/cms/tagging.rb
browsercms-3.5.4 app/models/cms/tagging.rb
browsercms-3.5.3 app/models/cms/tagging.rb
browsercms-3.5.2 app/models/cms/tagging.rb
browsercms-3.5.1 app/models/cms/tagging.rb
browsercms-3.5.0 app/models/cms/tagging.rb
browsercms-3.5.0.rc3 app/models/cms/tagging.rb
browsercms-3.5.0.rc2 app/models/cms/tagging.rb
browsercms-3.5.0.rc1 app/models/cms/tagging.rb