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