lib/searchlogic/named_scopes/ordering.rb in searchlogic-2.5.18 vs lib/searchlogic/named_scopes/ordering.rb in searchlogic-2.5.19

- old
+ new

@@ -33,10 +33,10 @@ if name.to_s =~ /^(ascend|descend)_by_(#{column_names.join("|")})$/ {:order_as => $1, :column => $2} elsif name.to_s =~ /^order$/ {} end - rescue ActiveRecord::StatementInvalid + rescue ::ActiveRecord::StatementInvalid end def create_ordering_conditions(column) named_scope("ascend_by_#{column}".to_sym, {:order => "#{table_name}.#{column} ASC"}) named_scope("descend_by_#{column}".to_sym, {:order => "#{table_name}.#{column} DESC"})