Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f1903aba6a
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (10 sloc) 0.33 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
require 'active_wrapper'

Application.class_eval do
  
  $db, $log, $mail = ActiveWrapper.setup(
    :base => root,
    :env => environment,
    :stdout => $0 != 'script/daemon' && $0 != 'irb' && $0[-5..-1] != '/rake' && environment != :test
  )
  
  $db.establish_connection

  ActionMailer::Base.raise_delivery_errors = true
end
Something went wrong with that request. Please try again.