Sha256: d0e7aa0b2e3b52d723f12d18d73fc3395e0ce9de6f37413d40ee819b3fb7ca96
Contents?: true
Size: 840 Bytes
Versions: 4
Compression:
Stored size: 840 Bytes
Contents
class EchiRecord < ActiveRecord::Base #Determine our working directory workingdirectory = File.expand_path(File.dirname(__FILE__)) #Open the configuration file configfile = workingdirectory + '/../config/application.yml' config = YAML::load(File.open(configfile)) if config["pco_process"] == 'Y' set_table_name config["pco_record_tablename"] set_sequence_name config["pco_record_seqname"] end end class EchiLog < ActiveRecord::Base #Determine our working directory workingdirectory = File.expand_path(File.dirname(__FILE__)) #Open the configuration file configfile = workingdirectory + '/../config/application.yml' config = YAML::load(File.open(configfile)) if config["pco_process"] == 'Y' set_table_name @config["pco_log_tablename"] set_sequence_name @config["pco_log_seqname"] end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
echi-converter-0.0.4 | lib/database.rb |
echi-converter-0.1.0 | lib/database.rb |
echi-converter-0.0.5 | lib/database.rb |
echi-converter-0.1.1 | lib/database.rb |