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

Version Path
active_scaffold_sortable-3.2.9 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.8 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.7 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.6 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.5 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.4 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.3 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.2 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.1 lib/active_scaffold_sortable/view_helpers.rb
active_scaffold_sortable-3.2.0 lib/active_scaffold_sortable/view_helpers.rb