Sha256: b68bdb06c9203f44cb69a516ba6fc4a3e0cabd8d6982c27334082e842d8ea1d6
Contents?: true
Size: 906 Bytes
Versions: 39
Compression:
Stored size: 906 Bytes
Contents
class RepositoriesController < ApplicationController record_select :per_page => 10, :search_on => "url", :order_by => "url ASC", :full_text_search => true active_scaffold :repositories do |config| config = self # Ruby19 compatibility config.columns = [ :url, :network, :created_at, :updated_at, :ping, :tracert, :priority, :disabled ] config.action_links.add 'copy', :label => 'Clone', :type => :record, :position => false, :confirm => "Do you really want to *clone* this item?" config.list.sorting = { :url => :asc } [:priority, :disabled].each do |column| config.columns[column].inplace_edit = true end end def ping Repository.find(params[:id]).ping render :nothing => true end def tracert Repository.find(params[:id]).tracert render :nothing => true end end
Version data entries
39 entries across 39 versions & 1 rubygems