Sha256: f2859239cf61bc85d0d84c3fb17ba0ecb9a65d6bc71f1640bd8049d1fb7f4f0f

Contents?: true

Size: 841 Bytes

Versions: 2

Compression:

Stored size: 841 Bytes

Contents

RAILS_GEM_VERSION = '2.3.2' 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 << GlobalConfig
  def prepare_options_for_attachment_fu(options)
    attachment_fu_options = options.symbolize_keys.merge({:storage => options['storage'].to_sym, 
        :max_size => options['max_size'].to_i.megabytes})  
  end
end

Rails::Initializer.run do |config|
  config.load_paths += Dir.glob(File.join(RAILS_ROOT, 'vendor', 'gems', '*', 'lib'))
  config.time_zone = 'UTC'
  config.gem 'uploader'
  config.gem 'thoughtbot-paperclip',  :version => '~> 2.2.2', :lib => 'paperclip', :source => 'http://gems.github.com'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uploader-0.1.12 test/rails_root/config/environment.rb
uploader-0.1.13 test/rails_root/config/environment.rb