Permalink
Browse files

RAILS_ENV => Rails.env for 3.1

  • Loading branch information...
1 parent a80ddd5 commit 4efcfbe559f950e803851c5033bca43a13323cec @jmoses jmoses committed Jul 8, 2011
@@ -117,7 +117,7 @@ def self.included(base) #:nodoc:
begin
@@cloudfiles_config_path = base.attachment_options[:cloudfiles_config_path] || (Rails.root.to_s + '/config/rackspace_cloudfiles.yml')
- @@cloudfiles_config = @@cloudfiles_config = YAML.load(ERB.new(File.read(@@cloudfiles_config_path)).result)[RAILS_ENV].symbolize_keys
+ @@cloudfiles_config = @@cloudfiles_config = YAML.load(ERB.new(File.read(@@cloudfiles_config_path)).result)[Rails.env].symbolize_keys
rescue
#raise ConfigFileNotFoundError.new('File %s not found' % @@cloudfiles_config_path)
end
@@ -184,7 +184,7 @@ def self.included(base) #:nodoc:
begin
@@s3_config_path = base.attachment_options[:s3_config_path] || (Rails.root.to_s + '/config/amazon_s3.yml')
- @@s3_config = @@s3_config = YAML.load(ERB.new(File.read(@@s3_config_path)).result)[RAILS_ENV].symbolize_keys
+ @@s3_config = @@s3_config = YAML.load(ERB.new(File.read(@@s3_config_path)).result)[Rails.env].symbolize_keys
#rescue
# raise ConfigFileNotFoundError.new('File %s not found' % @@s3_config_path)
end

0 comments on commit 4efcfbe

Please sign in to comment.