Sha256: 13f81b10c1dbf7af34e03ec4a5df2edb444024eacc26263c834c3b4139fe54e7

Contents?: true

Size: 1.1 KB

Versions: 36

Compression:

Stored size: 1.1 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

36 entries across 36 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.14 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.13 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.12 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.11 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.10 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.9 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.8 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.7 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.6 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.5 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.4 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.3 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.2 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.1 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.24.0 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.23.7 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.23.6 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.23.5 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.23.4 lib/six-updater-web/app/controllers/appsettings_controller.rb