Sha256: d8145f60d4cd6cfb199792497ab0e48c374b311b4518933d9948f4338f4304bc
Contents?: true
Size: 1.79 KB
Versions: 23
Compression:
Stored size: 1.79 KB
Contents
class ModsController < ApplicationController record_select :per_page => 10, :search_on => "name", :order_by => "name ASC", :full_text_search => true active_scaffold :mods do |config| config = self # Ruby19 compatibility config.columns = [ :name, :version, :version_local, :size, :categories, :path, :type, :sixconfigs, :networks, :queryservers, :mods, # :created_at, :updated_at, :updated_version, :priority, :skip, :disabled, :remote] config.create.columns.exclude :remote, :queryservers config.update.columns.exclude :remote, :queryservers, :servers config.action_links.add 'copy', :label => 'Clone', :type => :record, :position => false, :confirm => "Do you really want to *clone* this item?" config.list.columns.exclude :sixconfigs, :servers, :path, :updated_at, :priority config.list.sorting = { :name => :asc } config.columns[:servers].form_ui = :record_select config.columns[:sixconfigs].form_ui = :record_select config.columns[:sixconfigs].label = "Presets" config.columns[:disabled].label = "Dis" config.columns[:remote].label = "NFO" config.columns[:priority].label = "Prio" config.columns[:version_local].label = "Local" config.columns[:version].label = "Ver" config.columns[:mods].label = "Dependencies" # config.columns[:changelog_link].label = "Changelog" config.columns[:queryservers].label = "Gamespy servers" [:mods, :networks, :servers, :queryservers, :sixconfigs, :categories].each do |c| config.columns[c].form_ui = :record_select end [:skip, :disabled, :path, :priority].each do |column| config.columns[column].inplace_edit = true end end end
Version data entries
23 entries across 23 versions & 1 rubygems