Class: SlashMigrate::TablesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/slash_migrate/tables_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/slash_migrate/tables_controller.rb', line 3

def index
  @table_names = inspector.table_names
end

#showObject



7
8
9
10
11
# File 'app/controllers/slash_migrate/tables_controller.rb', line 7

def show
  head :not_found and return unless inspector.exists?(params[:id])

  @table = inspector.table(params[:id])
end