Sha256: e26d7319e768c2a85994c2fb6bb1d6f1ede3b99bfa2c9e27f3eac8baa2a17d56

Contents?: true

Size: 279 Bytes

Versions: 11

Compression:

Stored size: 279 Bytes

Contents

module SortableHelper
  def sortable_fetch(models, &block)
    warn "[DEPRECATION] `sortable_fetch` is deprecated. Please use Enumerable#each_with_sortable_id instead."
    raise "Must be called with block!" unless block_given?
    models.each_with_sortable_id(&block)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails_sortable-1.3.2 app/helpers/sortable_helper.rb
rails_sortable-1.3.1 app/helpers/sortable_helper.rb
rails_sortable-1.3.0 app/helpers/sortable_helper.rb
rails_sortable-1.2.1 app/helpers/sortable_helper.rb
rails_sortable-1.2.0 app/helpers/sortable_helper.rb
rails_sortable-1.1.4 app/helpers/sortable_helper.rb
rails_sortable-1.1.3 app/helpers/sortable_helper.rb
rails_sortable-1.1.2 app/helpers/sortable_helper.rb
rails_sortable-1.1.1 app/helpers/sortable_helper.rb
rails_sortable-1.1.0 app/helpers/sortable_helper.rb
rails_sortable-1.0.0 app/helpers/sortable_helper.rb