Sha256: 2f404abcccddd7b23c2574384e91c24881fbf8fb91f651e8f6523c56c9e6c591
Contents?: true
Size: 214 Bytes
Versions: 6
Compression:
Stored size: 214 Bytes
Contents
module SortableHelper def sortable_fetch(models, &block) raise "You must call with block!" unless block_given? models.each do |object| yield object, "#{object.class}_#{object.id}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems