Sha256: c89807b1cb335b7427bf7801bb259571c7f9a25c8c0bbdffba6f01e3ce1e8dd6
Contents?: true
Size: 354 Bytes
Versions: 19
Compression:
Stored size: 354 Bytes
Contents
# 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
Version data entries
19 entries across 19 versions & 1 rubygems