Class: MaglevDatabaseExplorer::ObjectExplorerController

Inherits:
ApplicationController show all
Defined in:
app/controllers/maglev_database_explorer/object_explorer_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
# File 'app/controllers/maglev_database_explorer/object_explorer_controller.rb', line 3

def index
  if request.port == MaglevDatabaseExplorer.application_port
    redirect_to "#{request.protocol}#{request.host}:#{MaglevDatabaseExplorer.debug_port}#{request.fullpath}"
  end    
end