- Added a :name_mapping option to find_for_table to allow filtering by compund expressions, example:
@customers = Customer.find_for_table(params, name_mapping: { name: ‘(“addresses”.“firstname” || \’ \’ || “addresses”.“lastname”)’, address: ‘(“addresses”.“street” || \’ \’ || “addresses”.“zip_code” || \’ \’ || “addresses”.“city”)’ }, default_order: ‘updated_at desc’ )
- Converted into a Rails 3.1 engine and moved css and images to use the new asset pipeline. Works with 3.0.x — ’opefully. Thanks to all that reported the problem.
- Header cells are now auto translated. Thanks to niedhui!
- Fixed a ruby 1.8 syntax issue. Thanks to TBAA for reporting!
- Mongoid can also be used in place of ActiveRecord
- fixed handling of the primary_key column and name
- Added dom_id to tables tr. Thanks to sterrym (Tim Glen)!
- Added note on “Request-URI Too Large error” to README
- nicer table headers. Thanks to troya2 (Troy Anderson)!
- Fixed bug with nil exception on ‘empty’ belongs_to association. Thanks to dgm!
- Fixed bug with “Select …” buttons introduced in 0.1.0.
- Added tests for these buttons.
- new find_for_table option :stateful. If
MyFancyModel.find_for_table params, :stateful => session
is given, the current sorting, filtering, selecting and paging information is stored to the session and restored when reopened. Great for procession specifically filtered lists.
- new column option :map (defaults to true) to disable automatic mapping on the enries of the association as in
<%= table_for @products do |t| … t.association :tags, :title # mapped to all tags t.association :tags, :count, :map => false # called on the list-of-tags end %>
- fixed the path to paging/sorting images installed by generator. Thanks to sdsykes!