Sha256: be2a453c110c5a93f14202b3807444e2362fe5961d25a729e7a1abf5f927763d

Contents?: true

Size: 909 Bytes

Versions: 3

Compression:

Stored size: 909 Bytes

Contents

require 'action_view'
require 'active_support/core_ext/class'
require 'table_cloth/version'
require 'table_cloth/configurable_elements'
require 'table_cloth/base'

module TableCloth
  autoload :Configuration, 'table_cloth/configuration'
  autoload :Builder, 'table_cloth/builder'
  autoload :Column, 'table_cloth/column'
  autoload :Action, 'table_cloth/action'
  autoload :Actions, 'table_cloth/actions'
  autoload :Presenter, 'table_cloth/presenter'
  autoload :ActionViewExtension, 'table_cloth/action_view_extension'

  module Presenters
    autoload :Default, 'table_cloth/presenters/default'
  end

  module Columns
    autoload :Action, 'table_cloth/columns/action'
  end

  def config_for(type)
    Configuration.config_for(type).dup
  end
  module_function :config_for
end

TableCloth::Base.presenter ::TableCloth::Presenters::Default

ActionView::Base.send(:include, TableCloth::ActionViewExtension)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
table_cloth-0.2.3 lib/table_cloth.rb
table_cloth-0.2.2 lib/table_cloth.rb
table_cloth-0.2.1 lib/table_cloth.rb