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