Class: Jsql::ExecuteController

Inherits:
JSQLController show all
Defined in:
app/controllers/jsql/execute_controller.rb

Instance Method Summary collapse

Methods inherited from JSQLController

#colon_switcher, #create_query, #database_type, #delete_manager, #delete_manager_time, #find_manager, #get_queries, #missing_params_collector, #params_switcher, #query_method_compare, #question_mark_switcher, #render_error_msg, #rollback_manager, #transaction_control

Instance Method Details

#createObject



3
4
5
# File 'app/controllers/jsql/execute_controller.rb', line 3

def create
  perform_method('commit')
end

#perform_method(method) ⇒ Object



7
8
9
10
# File 'app/controllers/jsql/execute_controller.rb', line 7

def perform_method(method)
  manager = transaction_control
  manager.commit_transaction
end