Sha256: 7b6b5fa099c0f934a05ef38977978aea5aeaba03e7ff78540934488c5b2b99d4

Contents?: true

Size: 728 Bytes

Versions: 42

Compression:

Stored size: 728 Bytes

Contents

class ActionsController < ApplicationController
  record_select :per_page => 10, :search_on => "name", :order_by => "name ASC", :full_text_search => true

  active_scaffold :actions do |config|
    config = self # Ruby19 compatibility
    config.columns = [
      :name,
      :tasks,
      :sixconfigs,
      :updated_at
    ]
    config.columns[:sixconfigs].label = "Presets"
    config.columns[:sixconfigs].form_ui = :record_select
    config.list.sorting = { :name => :asc }
    config.action_links.add 'copy', :label => 'Clone', :type => :record, :position => false, :confirm => "Do you really want to *clone* this item?"
  end
  
  def copy
    t = copy_ll(Action)
    @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/actions_controller.rb
six-updater-web-0.17.7 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.17.6 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.17.5 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.17.4 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.17.3 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.17.2 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.17.1 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.17.0 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.16.3 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.16.2 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.16.0 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.15.4 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.15.3 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.15.2 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.15.1 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.14.12 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.14.10 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.14.9 lib/six-updater-web/app/controllers/actions_controller.rb
six-updater-web-0.14.8 lib/six-updater-web/app/controllers/actions_controller.rb