lib/active_admin/order_clause.rb in activeadmin-2.3.1 vs lib/active_admin/order_clause.rb in activeadmin-2.4.0

- old
+ new

@@ -1,10 +1,10 @@ module ActiveAdmin class OrderClause attr_reader :field, :order, :active_admin_config def initialize(active_admin_config, clause) - clause =~ /^([\w\_\.]+)(->'\w+')?_(desc|asc)$/ + clause =~ /^([\w\.]+)(->'\w+')?_(desc|asc)$/ @column = $1 @op = $2 @order = $3 @active_admin_config = active_admin_config @field = [@column, @op].compact.join