Class: QueryserversController

Inherits:
ApplicationController show all
Defined in:
lib/six-updater-web/app/controllers/queryservers_controller.rb

Instance Method Summary collapse

Methods included from Six::Import::Controller::ClassMethods

#copy, #six_local_auto_login

Methods inherited from ActionController::Base

#active_scaffold_render_secure_download, #assign_names_with_active_scaffold, #render_with_active_scaffold, #search_generic_view_paths?

Instance Method Details

#exportObject



37
38
39
40
41
# File 'lib/six-updater-web/app/controllers/queryservers_controller.rb', line 37

def export
  record = Queryserver.find(params[:id])
  cfg = record.export_to_preset
  redirect_to "/sixconfigs/edit/#{cfg.id}"
end

#latestObject



43
44
45
46
47
# File 'lib/six-updater-web/app/controllers/queryservers_controller.rb', line 43

def latest
  @record = Queryserver.find(params[:id])
  @record.latest
  @record.save # if @record.changed?
end