Sha256: 0424f96c39fc808dcfcdfd8b226a460deed1b876f67e0bc96da4105d86626215

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 Bytes

Contents

module EasyTable
  module ActionViewExtensions
    module TableHelper
      def table_for(collection, options = {}, &block)
        t = EasyTable::TableBuilder.new(collection, self, options)
        block.yield(t) if block_given?
        t.build
      end
    end

  end
end

ActionView::Base.send :include, EasyTable::ActionViewExtensions::TableHelper

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
easy_table-0.0.8 lib/easy_table/action_view_extensions/table_helper.rb
easy_table-0.0.7 lib/easy_table/action_view_extensions/table_helper.rb
easy_table-0.0.6 lib/easy_table/action_view_extensions/table_helper.rb
easy_table-0.0.5 lib/easy_table/action_view_extensions/table_helper.rb
easy_table-0.0.4 lib/easy_table/action_view_extensions/table_helper.rb