Sha256: fc4b195001a20973c08ecbea0d2f115b25d3eb1d20f25418188766641a7214f0

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

require File.join(File.dirname(__FILE__), 'boot')

# Load a global constant so the initializers can use them
require 'ostruct'
require 'yaml'
::GlobalConfig = OpenStruct.new(YAML.load_file("#{RAILS_ROOT}/config/global_config.yml")[RAILS_ENV])

class TestGemLocator < Rails::Plugin::Locator
  def plugins
    Rails::Plugin.new(File.join(File.dirname(__FILE__), *%w(.. .. ..)))
  end 
end

Rails::Initializer.run do |config|
  config.time_zone = 'UTC'
  config.gem 'authlogic'
  config.gem 'searchlogic'
  config.gem 'will_paginate'
  config.gem 'bcrypt-ruby', :lib => 'bcrypt'
  config.gem 'paperclip'
  config.gem 'activemerchant', :lib => 'active_merchant'
  config.gem 'aasm'
  config.gem 'geokit'
  config.gem 'sanitize'
  config.gem 'overlord'
  config.gem 'muck-engine', :lib => 'muck_engine'
  config.gem 'muck-users', :lib => 'muck_users'
  config.gem 'muck-profiles', :lib => 'muck_profiles'
  config.plugin_locators << TestGemLocator
  
  config.after_initialize do
    MuckCommerce::Configure.gateway
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
muck-commerce-0.2.6 test/rails_root/config/environment.rb
muck-commerce-0.2.5 test/rails_root/config/environment.rb
muck-commerce-0.2.4 test/rails_root/config/environment.rb
muck-commerce-0.2.3 test/rails_root/config/environment.rb
muck-commerce-0.2.2 test/rails_root/config/environment.rb
muck-commerce-0.2.1 test/rails_root/config/environment.rb
muck-commerce-0.2.0 test/rails_root/config/environment.rb