Sha256: ca770a6a5a96409b37e6bd1e07ef4e618aca5e622f3e2137f87a848d12d72ad4
Contents?: true
Size: 914 Bytes
Versions: 1
Compression:
Stored size: 914 Bytes
Contents
require File.dirname(__FILE__) + '/active_wrapper/gems' ActiveWrapper::Gems.require(:lib) require 'action_mailer' require 'active_record' require 'fileutils' require 'logger' require 'yaml' $:.unshift File.dirname(__FILE__) + '/active_wrapper' require 'db' require 'log' require 'mail' require 'version' module ActiveWrapper class <<self def setup(options={}) env = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || ENV['MERB_ENV'] || 'development' options = { :base => File.dirname($0), :env => options[:env] || env, :log => options[:env] || env }.merge(options.reject { |k, v| v.nil? }) db = Db.new(options) log = Log.new(options) mail = Mail.new(options) ActionMailer::Base.logger = log ActiveWrapper::Gems.lockfile [ db, log, mail ] end end end ActiveRecord::Base.default_timezone = :utc
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_wrapper-0.3.3 | lib/active_wrapper.rb |