Sha256: 54f0c86a46d3369b0d37e18be2faac9688233f488742bc02655cb09dfff06623

Contents?: true

Size: 278 Bytes

Versions: 16

Compression:

Stored size: 278 Bytes

Contents

module TableFor
  module ViewAdditions
    module ClassMethods
      def table_for(records, options={}, &block)
        TableFor::Base.new(self, options.merge(:variable => "table", :records => records)).render_template("table_for/table_for", &block)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
table-for-3.7.0 lib/table_for/view_additions.rb
table-for-3.6.2 lib/table_for/view_additions.rb
table-for-3.6.1 lib/table_for/view_additions.rb
table-for-3.6.0 lib/table_for/view_additions.rb
table-for-3.5.0 lib/table_for/view_additions.rb
table-for-3.4.1 lib/table_for/view_additions.rb
table-for-3.4.0 lib/table_for/view_additions.rb
table-for-3.3.0 lib/table_for/view_additions.rb
table-for-3.2.0 lib/table_for/view_additions.rb
table-for-3.1.5 lib/table_for/view_additions.rb
table-for-3.1.4 lib/table_for/view_additions.rb
table-for-3.1.3 lib/table_for/view_additions.rb
table-for-3.1.2 lib/table_for/view_additions.rb
table-for-3.1.1 lib/table_for/view_additions.rb
table-for-3.1.0 lib/table_for/view_additions.rb
table-for-3.0.0 lib/table_for/view_additions.rb