Sha256: e1d1ea2a02dc7e5c5015467a3f00947748eac547ef50422b494733b64d970ed7

Contents?: true

Size: 625 Bytes

Versions: 12

Compression:

Stored size: 625 Bytes

Contents

require "table_builder/version"

require 'action_view/helpers/tag_helper'

require 'table_builder/tag'
require 'table_builder/cell'
require 'table_builder/row'
require 'table_builder/rows'
require 'table_builder/body'
require 'table_builder/head'
require 'table_builder/foot'
require 'table_builder/column'
require 'table_builder/table'

module TableBuilder
  mattr_accessor :options
  self.options = { 
    :alternate_rows => true,
    :i18n_scope => nil
  }

  def table_for(collection = [], options = {}, &block)
    Table.new(self, collection, options, &block).render
  end
end

TableBuilder.options[:i18n_scope] = :adva

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
adva-0.2.4 vendor/gems/table_builder/lib/table_builder.rb
adva-0.2.3 vendor/gems/table_builder/lib/table_builder.rb
adva-0.2.2 vendor/gems/table_builder/lib/table_builder.rb
adva-0.2.1 vendor/gems/table_builder/lib/table_builder.rb
adva-0.2.0 vendor/gems/table_builder/lib/table_builder.rb
adva-0.1.4 vendor/gems/table_builder/lib/table_builder.rb
adva-0.1.3 vendor/gems/table_builder/lib/table_builder.rb
adva-0.1.2 vendor/gems/table_builder/lib/table_builder.rb
adva-0.1.1 vendor/gems/table_builder/lib/table_builder.rb
adva-0.1.0 vendor/gems/table_builder/lib/table_builder.rb
adva_cms-0.0.1 vendor/gems/table_builder/lib/table_builder.rb
adva-0.0.1 adva_cms/vendor/gems/table_builder/lib/table_builder.rb