Class: StatsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- StatsController
- Defined in:
- app/controllers/stats_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |