Sha256: 2f70cf29612df8f27bd881e7c5ef6cfed8ffa68e90752ff68f5600e9908e57b1

Contents?: true

Size: 561 Bytes

Versions: 3

Compression:

Stored size: 561 Bytes

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.plugin_locators << TestGemLocator
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
disguise-2.0.0 test/rails_root/config/environment.rb
disguise-0.4.0 test/rails_root/config/environment.rb
disguise-0.3.12 test/rails_root/config/environment.rb