Class: LogsExplorer::ConsoleController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/logs_explorer/console_controller.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#active?, #format_datetime, #icon, #insert_css_file, #insert_js_file

Instance Method Details

#executeObject



14
15
16
17
18
# File 'app/controllers/logs_explorer/console_controller.rb', line 14

def execute
  @result = eval(params[:code])
rescue Exception => ex
  @result = ex.message
end

#indexObject



12
# File 'app/controllers/logs_explorer/console_controller.rb', line 12

def index; end