Sha256: 5c7f3471520fee5ec956f04c3639b5860b139897355d9286691de6a6e886ba03
Contents?: true
Size: 491 Bytes
Versions: 10
Compression:
Stored size: 491 Bytes
Contents
module ActiveScaffoldSortable module ViewHelpers def sort_params(config = active_scaffold_config) options = { :tag => 'tr', :reorder_url => url_for(params_for(:action => :reorder, :controller => controller_name)), :format => '^[^_-](?:[A-Za-z0-9_-]*)-(.*)-row$', :column => config.sortable.column.name } options.merge config.sortable.options end def active_scaffold_sortable_column(record, column) '' end end end
Version data entries
10 entries across 10 versions & 1 rubygems