Sha256: 27bbb8c698e8e465f14e8ffe70e88b6fa497533736245b2528b96d09f90be1c6

Contents?: true

Size: 337 Bytes

Versions: 10

Compression:

Stored size: 337 Bytes

Contents

module WP25
  class Comment < ActiveRecord::Base
    establish_connection configurations['wp25']
    set_primary_key 'comment_ID'
    set_table_name 'wp_comments'
    belongs_to :post, :foreign_key => 'comment_parent', :class_name => 'WP25::Post'

    def self.prefix=(prefix)
      set_table_name "#{prefix}_comments"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
typo-5.0.3.98.1 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.0.3.98 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.1.2 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.1.1 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.1.3 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.1 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.1.98 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.2 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.2.98 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb
typo-5.3 vendor/plugins/typo_converter/lib/converters/wp25/comment.rb