Sha256: 42e3f2e9e85c608f882e4617e45bd3abcea7f7c2ec5aa8a9d5ac2cfee08c9bd4
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
require 'dm-core' module Doozer # See for more info => http://datamapper.org/doku.php?id=getting_started_with_datamapper module ORM def self.load db_config = Doozer::Configs.db() DataMapper.setup(:default, { :adapter => db_config["adapter"], :database => db_config["database"], :username => db_config["username"], :password => db_config["password"], :host => db_config["host"] }) p "ORM: #{Doozer::Configs.orm()} initialized..." DataMapper::Logger.new(STDOUT, :debug) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grippy-doozer-0.1.0 | lib/doozer/orm/data_mapper.rb |
grippy-doozer-0.1.1 | lib/doozer/orm/data_mapper.rb |
grippy-doozer-0.1.2 | lib/doozer/orm/data_mapper.rb |