Sha256: dc0a014654176eccd0df64af1a2ab85296020e7a7ca2d86f6005aa430c4bd8b9

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
six-updater-web-0.18.2 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.18.1 lib/six-updater-web/app/controllers/appsettings_controller.rb