discourse/discourse — pull request #775 by goshakkk (2013-04-26 14:32:15+00:00)
Title: refactor AdminDashboardData a bit

* class methods inside `class << self`
* check Rails env using StringInquirer's convenience method
* prefer `&&` over `and` and `||` over `or`
* change `!x.present?` to `x.blank?`
* change `if !x` to `unless x`