Skip to content

Commit

Permalink
RAILS_ENV constant is deprecated, use Rails.env instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbackeus committed Feb 26, 2013
1 parent 20ac153 commit 1f5b45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/failure/airbrake.rb
Expand Up @@ -126,7 +126,7 @@ def api_key

def server_environment
return self.class.server_environment if self.class.server_environment
defined?(RAILS_ENV) ? RAILS_ENV : (ENV['RACK_ENV'] || 'development')
defined?(Rails) ? Rails.env : ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'production'
end
end
end
Expand Down

0 comments on commit 1f5b45e

Please sign in to comment.