lib/katalyst/tables/frontend.rb in katalyst-tables-1.0.0 vs lib/katalyst/tables/frontend.rb in katalyst-tables-1.1.0

- old
+ new

@@ -15,10 +15,10 @@ include Helper def table_with(collection:, **options, &block) table_options = options.slice(:header, :object_name, :sort) - table_options[:object_name] ||= collection.try(:model_name)&.param_key + table_options[:object_name] ||= collection.try(:model_name)&.i18n_key html_options = html_options_for_table_with(**options) builder = options.fetch(:builder) { default_table_builder_class } builder.new(self, collection, table_options, html_options).build(&block)