lib/active_admin/order_clause.rb in activeadmin-3.2.5 vs lib/active_admin/order_clause.rb in activeadmin-4.0.0.beta1

- old
+ new

@@ -27,11 +27,14 @@ def table active_admin_config.resource_column_names.include?(@column) ? active_admin_config.resource_table_name : nil end def table_column - (@column =~ /\./) ? @column : + if (@column.include?('.')) + @column + else [table, active_admin_config.resource_quoted_column_name(@column)].compact.join(".") + end end def sql custom_sql || to_sql end