Class: SweetStaging::ConsoleController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/sweet_staging/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



10
11
12
13
14
# File 'app/controllers/sweet_staging/console_controller.rb', line 10

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

#indexObject



7
8
# File 'app/controllers/sweet_staging/console_controller.rb', line 7

def index
end