Sha256: 70d5e9028aaa09133fd1362db28b7e19ca1427aacf973d5b009bfbd8e12dfb0b

Contents?: true

Size: 342 Bytes

Versions: 16

Compression:

Stored size: 342 Bytes

Contents

module Dotclear2
  class Comment < ActiveRecord::Base
    establish_connection configurations['dc2']
    set_primary_key 'comment_id'
    set_table_name 'dc_comment'
    belongs_to :post, :foreign_key => 'post_id', :class_name => 'Dotclear2::Post'
    
    def self.prefix=(prefix)
      set_table_name "#{prefix}_comment"
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
typo-5.5 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.4.4 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.4.3 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.4.2 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.4.1 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.4 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.0.3.98.1 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.0.3.98 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.1.2 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.1.1 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.1.3 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.1 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.1.98 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.2 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.2.98 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb
typo-5.3 vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb