Skip to content

Commit

Permalink
config bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Oct 28, 2009
1 parent 1880218 commit e9c8bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/lib/sweepy/config/config.rb
Expand Up @@ -6,7 +6,7 @@ class ConfigurationException < Exception
end end


def self.config def self.config
environment = $ENVIRONMENT || 'development' environment = ENV['RAILS_ENV'] || 'development'
return @@config if defined? @@config return @@config if defined? @@config


base_dir = File.expand_path(File.join(File.expand_path(File.dirname(__FILE__)), '..', '..', '..', '..', '..', '..', '..')) base_dir = File.expand_path(File.join(File.expand_path(File.dirname(__FILE__)), '..', '..', '..', '..', '..', '..', '..'))
Expand Down

0 comments on commit e9c8bee

Please sign in to comment.