EncyclopediaOfLife/eol — comment on commit d2672806882342e36b5681d0d7dd7da7dc58cdfd
File: app/controllers/admins/statistics_controller.rb line 69
By JRice:

Nothing wrong with this, per se, but I think I might have preferred to see it generalized in some way so you could define something like

```ruby
data_required = {:overall_stats => [:members_count, :communities_count, etc...],
:content_partners => [:content_partners, :published_resources, etc...]}
```

...somewhere useful and then generalize this block with something like:

```ruby
row << 'Created'
row += data_required[params[:report]].map {|which| I18n.t("activerecord.attributes.eol_statistic.#{which}")}
```

...or the like. [shrug] No big deal, just a thought.