Sha256: da9fc560f7086c5cf4710e00f05b60e767680759ce2205f5e0c2f9a6b4ac01ae
Contents?: true
Size: 1.09 KB
Versions: 10
Compression:
Stored size: 1.09 KB
Contents
class AppsettingsController < ApplicationController record_select :per_page => 10, :search_on => "name", :order_by => "name ASC", :full_text_search => true active_scaffold :appsetting do |config| config = self # Ruby19 compatibility config.label = "Settings Profiles" config.columns = [ :name, :exe, :path, :modpath, :logpath, :params, :sixconfigs, :beta, :server, :type, # :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, :beta, :server].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 end
Version data entries
10 entries across 10 versions & 1 rubygems