impress/config/initializers/aws_s3.rb

9 lines
253 B
Ruby
Raw Normal View History

2011-05-20 16:19:14 -07:00
require 'yaml'
config = YAML.load_file Rails.root.join('config', 'aws_s3.yml')
access_key_id = config.delete 'access_key_id'
secret_access_key = config.delete 'secret_access_key'
IMPRESS_S3 = RightAws::S3.new access_key_id, secret_access_key, config