lib/table_for/base.rb in table-for-3.4.0 vs lib/table_for/base.rb in table-for-3.4.1

- old
+ new

@@ -31,10 +31,14 @@ around(columns.last.name) do |content_block, record, column, options| options = options.merge(column.options) url = if options[:link_url] call_with_params(options[:link_url], record) else - [options[:link_action], options[:link_namespace], record].flatten.compact + [ + options[:link_action], + options[:link_namespace] || global_options[:link_namespace], + record + ].flatten.compact end html_options = {data: {}} html_options[:data][:method] = options[:link_method] if options[:link_method].present? html_options[:data][:confirm] = options[:link_confirm] if options[:link_confirm].present? html_options = html_options.deep_merge(options[:link_html] || {})