Class: AdminData::MigrationController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin_data/migration_controller.rb

Instance Attribute Summary

Attributes inherited from BaseController

#klass, #model

Instance Method Summary collapse

Methods included from Chelper

#admin_data_invalid_record_link, #admin_data_is_allowed_to_update?, #admin_data_is_allowed_to_update_model?, #admin_data_is_allowed_to_view?, #admin_data_is_allowed_to_view_klass?, #per_page

Instance Method Details

#indexObject



7
8
9
10
11
# File 'app/controllers/admin_data/migration_controller.rb', line 7

def index
  @page_title = 'migration information'
  @data = ActiveRecord::Base.connection.select_all('select * from schema_migrations')
  respond_to {|format| format.html}
end

#jstestObject



13
14
15
16
# File 'app/controllers/admin_data/migration_controller.rb', line 13

def jstest
  @page_title = 'jstest'
  respond_to {|format| format.html { render :layout => false}}
end