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

Version Path
blsm-mp-wx-0.3.6 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.3.5 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.3.4 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.3.3 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.3.2 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.3.0 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.8 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.7 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.6 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.5 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.4 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.3 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.2 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.2.1 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.1.9 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.1.8 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.1.7 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.1.6 lib/blsm-mp-wx/model/active_record.rb
blsm-mp-wx-0.1.5 lib/blsm-mp-wx/model/active_record.rb