Sha256: db03caa456807c68c4e056506ae51baaa877dcf63267cf10743f6d8e85ff2209
Contents?: true
Size: 604 Bytes
Versions: 8
Compression:
Stored size: 604 Bytes
Contents
require "action_view" require "with_template" require "table_for/engine" module TableFor autoload :Base, "table_for/base" autoload :ViewAdditions, "table_for/view_additions" mattr_accessor :config @@config = Hashie::Mash.new # set these to nil in setup block if you do not want thead, tbody, or tfoot tags rendered @@config.thead_tag = :thead @@config.tbody_tag = :tbody @@config.tfoot_tag = :tfoot @@config.sort_modes = [:asc, :desc] # Default way to setup TableFor def self.setup yield config end end ActionView::Base.send :include, TableFor::ViewAdditions::ClassMethods
Version data entries
8 entries across 8 versions & 1 rubygems