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