Sha256: 86dcea27704912cb4d3d68374235bc1b7c267ac6541ac049c8ddf335c32dc272

Contents?: true

Size: 251 Bytes

Versions: 8

Compression:

Stored size: 251 Bytes

Contents

class IndexController < ApplicationController
  def index
    @tables = ActiveRecord::Base.connection.tables
    if !params[:id].nil?
      @columns = Kernel.const_get(params[:id].singularize.camelize).column_names
    end
    render :index
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
visual_migrate-4.1.7.0 test/dummy/app/controllers/index_controller.rb
visual_migrate-4.1.0.0 test/dummy/app/controllers/index_controller.rb
visual_migrate-4.0.2.0 test/dummy/app/controllers/index_controller.rb
visual_migrate-4.0.1.6 test/dummy/app/controllers/index_controller.rb
visual_migrate-4.0.1.5 test/dummy/app/controllers/index_controller.rb
visual_migrate-4.0.1.4 test/dummy/app/controllers/index_controller.rb
visual_migrate-4.0.1.3 test/dummy/app/controllers/index_controller.rb
visual_migrate-4.0.1.2 test/dummy/app/controllers/index_controller.rb