Permalink
Browse files

Fix rails_env display in stats view

RAILS_ENV is never defined, bad copy/paste.
  • Loading branch information...
gravis authored and defunkt committed Jul 22, 2010
1 parent 6fd8522 commit 1adb82a28edaef8daa2167d51a055a24cab497d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/resque.rb
View
@@ -280,7 +280,7 @@ def info
:working => working.size,
:failed => Stat[:failed],
:servers => [redis_id],
- :environment => defined?(RAILS_ENV) ? RAILS_ENV : (ENV['RACK_ENV'] || 'development')
+ :environment => ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
}
end

0 comments on commit 1adb82a

Please sign in to comment.