Module: Enumerable

Defined in:
lib/rails_sortable/core_ext/enumerable.rb

Instance Method Summary collapse

Instance Method Details

#each_with_sortable_id(&block) ⇒ Object



2
3
4
5
# File 'lib/rails_sortable/core_ext/enumerable.rb', line 2

def each_with_sortable_id(&block)
  raise "Must be called with block!" unless block_given?
  each { |e| yield e, e.sortable_id }
end