Skip to content

Commit

Permalink
Rollback changes in datagrid_order_for
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Nov 10, 2024
1 parent 74aa904 commit ace61b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datagrid/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def datagrid_rows(grid, assets = grid.assets, **options, &block)
#
# * <tt>:partials</tt> - Path for partials lookup.
# Default: 'datagrid'.
def datagrid_order_for(grid, column, order: true, **options)
def datagrid_order_for(grid, column, options = {})
Datagrid::Utils.warn_once(<<~MSG)
datagrid_order_for is deprecated.
Put necessary code inline inside datagrid/head partial.
See built-in partial for example.
MSG
datagrid_renderer.order_for(grid, column, **options)
datagrid_renderer.order_for(grid, column, options)
end

# Renders HTML for grid with all filters inputs and labels defined in it
Expand Down

0 comments on commit ace61b3

Please # to comment.