lib/arxutils_sqlite3/dbutil/dbconnect.rb in arxutils_sqlite3-0.1.43 vs lib/arxutils_sqlite3/dbutil/dbconnect.rb in arxutils_sqlite3-0.1.44

- old
+ new

@@ -48,13 +48,13 @@ # DB接続、DB用ログファイルの設定 def connect unless @connect_time begin - p "@dbconfig_dest_path=#{@dbconfig_dest_path}" + #p "@dbconfig_dest_path=#{@dbconfig_dest_path}" dbconfig = Ykxutils.yaml_load_file_compati(@dbconfig_dest_path) - p "dbconfig=#{dbconfig}" - p "@env=#{@env}" + #p "dbconfig=#{dbconfig}" + #p "@env=#{@env}" ActiveRecord::Base.establish_connection(dbconfig[@env]) ActiveRecord::Base.logger = Logger.new(@log_path) @connect_time = DateTime.now.new_offset rescue => ex p ex.message