Sha256: 94d3e48b8b43537380fbbd91bf70d31ced0467d94baa4528852fda37e66bb364

Contents?: true

Size: 384 Bytes

Versions: 11

Compression:

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

    extend 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 & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/models/cms/tagging.rb
browsercms-artirix-4.0.3.3 app/models/cms/tagging.rb
browsercms-artirix-4.0.3.2 app/models/cms/tagging.rb
browsercms-artirix-4.0.3.1 app/models/cms/tagging.rb
browsercms-artirix-4.0.3 app/models/cms/tagging.rb
browsercms-artirix-4.0.2 app/models/cms/tagging.rb
browsercms-artirix-4.0.1.1 app/models/cms/tagging.rb
browsercms-artirix-4.0.0.rc1.art4 app/models/cms/tagging.rb
browsercms-4.0.0.rc1 app/models/cms/tagging.rb
browsercms-4.0.0.beta app/models/cms/tagging.rb
browsercms-4.0.0.alpha app/models/cms/tagging.rb