Sha256: a21afdd3944f394806129c85b07e6284b27cf991b060419e7598256076ff5fed
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 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/query/sequel' require 'praxis-mapper/config_hash'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
praxis-mapper-3.4.0 | lib/praxis-mapper.rb |