lib/table_for.rb in table-for-3.7.0 vs lib/table_for.rb in table-for-4.0.0.rc1

- old
+ new

@@ -1,19 +1,20 @@ -require "action_view" -require "with_template" +require "blocks" 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] + @@config = { + defaults: { + thead_tag: :thead, + tbody_tag: :tbody, + tfoot_tag: :tfoot, + sort_modes: [:asc, :desc] + } + } # Default way to setup TableFor def self.setup yield config end \ No newline at end of file