Sha256: 2143295c022bc4d94fad364ff8f228aa1100a68eef3645da7b385c40f36dc425
Contents?: true
Size: 170 Bytes
Versions: 1
Compression:
Stored size: 170 Bytes
Contents
module Enumerable def each_with_sortable_id(&block) raise "Must be called with block!" unless block_given? each { |e| yield e, "#{e.class}_#{e.id}" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_sortable-1.0.0 | lib/rails_sortable/core_ext/enumerable.rb |