module Enumerable
Public Instance Methods
each_with_sortable_id() { |e, sortable_id| ... }
click to toggle source
# 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