Class: StatsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/stats_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
# File 'app/controllers/stats_controller.rb', line 2

def index
  tables  = ActiveRecord::Base.connection.tables.reject { |t| t == 'schema_migrations' }
  @models = tables.map { |t| Kernel.const_get t.classify }
end