Sha256: 82b44c898ea2262029a5da6cee549a9bc6a8bd950fce6b166ad8ee0f999836f0
Contents?: true
Size: 1.13 KB
Versions: 42
Compression:
Stored size: 1.13 KB
Contents
class AppsettingsController < ApplicationController record_select :per_page => 10, :search_on => "name", :order_by => "name ASC", :full_text_search => true active_scaffold :appsettings do |config| config = self # Ruby19 compatibility config.label = "Settings Profiles" config.columns = [ :name, :exe, :path, :modpath, :logpath, :params, :sixconfigs, # :created_at, :updated_at ] config.columns[:sixconfigs].label = "Presets" config.action_links.add 'copy', :label => 'Clone', :type => :record, :position => false, :confirm => "Do you really want to *clone* this item?" config.columns[:sixconfigs].form_ui = :record_select config.list.sorting = { :name => :asc } [:name, :exe, :path, :modpath, :logpath, :params].each do |column| config.columns[column].inplace_edit = true end end def manage if params[:id] @processes = Appsetting.find(params[:id]).processes else @processes = [] end end def copy t = copy_ll(Appsetting) @original_record = t[0] @record = t[1] end end
Version data entries
42 entries across 42 versions & 1 rubygems
Version | Path |
---|---|
six-updater-web-0.11.2 | lib/app/controllers/appsettings_controller.rb |
six-updater-web-0.11.1 | lib/app/controllers/appsettings_controller.rb |