change code style in 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`