lib/tabulatr/tabulatr/settings.rb in tabulatr-0.3.0 vs lib/tabulatr/tabulatr/settings.rb in tabulatr-0.4.0

- old
+ new

@@ -96,11 +96,12 @@ :selectable => true, # true to render "select all", "select none" and the like :reset => false, # true to render a reset button. Only reasonable in 'stateful' case :action => nil, # target action of the wrapping form if applicable :batch_actions => false, # :name => value hash of batch action stuff :translate => false, # call t() for all 'labels' and stuff, possible values are true/:translate or :localize - :row_classes => ['odd', 'even'] # class for the trs + :row_classes => ['odd', 'even'], # class for the trs + :footer_content => false # if given, add a <%= content_for <footer_content> %> before the </table> }) # these settings are considered constant for the whole application, can not be overridden # on a per-table basis. # That's necessary to allow find_for_table to work properly @@ -161,10 +162,11 @@ FINDER_OPTIONS = WhinyHash.new({ :default_order => false, :default_pagesize => false, :precondition => false, :store_data => false, - :stateful => false + :stateful => false, + :name_mapping => nil }) # Stupid hack SQL_OPTIONS = WhinyHash.new({ :like => nil