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

Version Path
rails_sortable-0.1.1 app/helpers/sortable_helper.rb
rails_sortable-0.1.0 app/helpers/sortable_helper.rb
rails_sortable-0.0.5 app/helpers/sortable_helper.rb
rails_sortable-0.0.4 app/helpers/sortable_helper.rb
rails_sortable-0.0.3 app/helpers/sortable_helper.rb
rails_sortable-0.0.2 app/helpers/sortable_helper.rb