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.18.0 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.7 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.6 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.5 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.4 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.3 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.2 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.1 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.17.0 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.16.3 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.16.2 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.16.0 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.15.4 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.15.3 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.15.2 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.15.1 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.14.12 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.14.10 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.14.9 lib/six-updater-web/app/controllers/appsettings_controller.rb
six-updater-web-0.14.8 lib/six-updater-web/app/controllers/appsettings_controller.rb