lib/admino/table/head_row.rb in admino-0.0.3 vs lib/admino/table/head_row.rb in admino-0.0.4

- old
+ new

@@ -41,16 +41,16 @@ html_options = Showcase::Helpers::HtmlOptions.new(default_options) html_options.merge_attrs!(options) html_options = html_options.to_h sorting_scope = html_options.delete(:sorting) + sorting_html_options = html_options.delete(:sorting_html_options) { {} } if sorting_scope raise ArgumentError, 'query object is required' unless query - sorting_html_options = html_options.delete(:sorting_html_options) { {} } label = query.sorting.scope_link(sorting_scope, label, sorting_html_options) end - @columns << h.content_tag(:th, label.to_s, html_options.to_h) + @columns << h.content_tag(:th, label.to_s, html_options) end def to_html @columns.html_safe end