# coding: utf-8 module BlsmMpWx class BaseRecord < ActiveRecord::Base self.configurations = YAML::load(ERB.new(File.open(Rails.root ? File.join(Rails.root, "config", "database.yml") : './config/database.yml').inject('') { |text, line| text+line }).result) establish_connection Rails::env.to_s.to_sym self.table_name='vd_mp_wxes' end end