Class: SweetStaging::ConsoleController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- SweetStaging::ConsoleController
- 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
#execute ⇒ Object
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. end |
#index ⇒ Object
7 8 |
# File 'app/controllers/sweet_staging/console_controller.rb', line 7 def index end |