Module: SortableHelper

Defined in:
app/helpers/sortable_helper.rb

Instance Method Summary collapse

Instance Method Details

#sortable_fetch(models, &block) ⇒ Object



2
3
4
5
6
# File 'app/helpers/sortable_helper.rb', line 2

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