Sha256: 2c9e1496887488ec79249fa66250f823c27fef46f1c01b02d7f21b98e03a15c4

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

require File.join(File.dirname(__FILE__), 'boot')
require 'md5' # Need this up here to generate the session[:secret] value down there

Rails::Initializer.run do |config|
  config.load_paths += Dir.glob(File.join(RAILS_ROOT, 'vendor', 'gems', '*', 'lib'))
  config.time_zone = 'Eastern Time (US & Canada)'
  config.action_controller.session = {
    :session_key => "_warrant_session",
    :secret      => ['warrant', 'random', 'words', 'here'].map {|k| Digest::MD5.hexdigest(k) }.join
  }
  config.gem 'mocha', 
     :version => '>= 0.9.4'
  config.gem 'quietbacktrace', 
     :version => '>= 0.1.1'
  config.gem 'thoughtbot-factory_girl', 
     :lib => 'factory_girl', 
     :source => 'http://gems.github.com', 
     :version => '>= 1.1.5'
  config.gem 'thoughtbot-shoulda', 
     :lib => 'shoulda', 
     :source => 'http://gems.github.com', 
     :version => '>= 2.0.6'
     
  # This simulates loading the warrant gem, but without relying on vendor/gems
  warrant_path = File.join(File.dirname(__FILE__), *%w(.. .. ..))
  warrant_lib_path = File.join(warrant_path, "lib")
  $LOAD_PATH.unshift(warrant_lib_path)
  load File.join(warrant_path, 'rails', 'init.rb')

end

DO_NOT_REPLY = "donotreply@example.com"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gsterndale-warrant-0.3.0 test/rails_root/config/environment.rb