Sha256: 567cc1b862066937174c9fe05ba28af70a0b0d2f871cf9f2b1e449441b4273de
Contents?: true
Size: 1.58 KB
Versions: 36
Compression:
Stored size: 1.58 KB
Contents
class SixconfigsController < ApplicationController record_select :per_page => 10, :search_on => "name", :order_by => "name ASC", :full_text_search => true active_scaffold :sixconfigs do |config| config = self # Ruby19 compatibility config.label = "Presets" config.columns = [ :name, :mods, :queryserver, :server, :appsetting, :action, # :created_at, :updated_at, :exec ] config.columns[:appsetting].label = "Settings Profile" #config.action_links.add 'exec', :label => 'Execute', :type => :record, :position => false, :confirm => "Do you really want to *execute* this item?" config.action_links.add 'copy', :label => 'Clone', :type => :record, :position => false, :confirm => "Do you really want to *clone* this item?" config.columns[:exec].label = "Run" config.list.sorting = { :name => :asc } config.update.columns.exclude :exec config.create.columns.exclude :exec [:mods, :queryserver, :server, :appsetting, :action].each do |c| config.columns[c].form_ui = :record_select end [:name].each do |column| config.columns[column].inplace_edit = true end end def copy t = copy_ll(Kernel.const_get(self.controller_name.singularize.camelize), [:mods]) @original_record = t[0] @record = t[1] end def test1 @sixconfig = Sixconfig.find("a5de5f84-94bd-11df-8867-00248c385045") @signatures = @sixconfig.queryserver.signatures @allowed, @disallowed, @garbage = *@sixconfig.appsetting.allowance(@signatures) end end
Version data entries
36 entries across 36 versions & 1 rubygems