option.rb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:0k
- module WP25
- class Option < ActiveRecord::Base
- set_table_name 'wp_options'
- set_primary_key 'option_id'
- establish_connection configurations['wp25']
- def self.prefix=(prefix)
- set_table_name "#{prefix}_options"
- end
- end
- end