Sha256: 0998134369421953f547bee4063744753334d5bc974073c334fd7d4fdb19b599
Contents?: true
Size: 1.22 KB
Versions: 4
Compression:
Stored size: 1.22 KB
Contents
require 'json' require 'yaml' require 'logger' require 'sequel' module Praxis module Mapper # Get the logger configured for Praxis::Mapper # # @example Basic usage # Praxis::Mapper.logger.info 'Something interesting happened' # # @return [Logger] The currently configured logger or a STDOUT logger # def self.logger @logger ||= begin require 'logger' Logger.new(STDOUT) end end # Set the logger configured for Praxis::Mapper # # @example Basic usage # Praxis::Mapper.logger = Logger.new('log/development.log') # # @return [Logger] The logger object # def self.logger=(logger) @logger = logger end # Perform any final initialiation needed def self.finalize! Praxis::Mapper::Model.finalize! Praxis::Mapper::Resource.finalize! end end end require 'praxis-mapper/finalizable' require 'praxis-mapper/logging' require 'praxis-mapper/identity_map' require 'praxis-mapper/model' require 'praxis-mapper/query_statistics' require 'praxis-mapper/connection_manager' require 'praxis-mapper/resource' require 'praxis-mapper/query/base' require 'praxis-mapper/query/sql' require 'praxis-mapper/config_hash'
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
praxis-mapper-3.3 | lib/praxis-mapper.rb |
praxis-mapper-3.2 | lib/praxis-mapper.rb |
praxis-mapper-3.1.2 | lib/praxis-mapper.rb |
praxis-mapper-3.1.1 | lib/praxis-mapper.rb |