lib/ransack/nodes/sort.rb in ransack-1.8.0 vs lib/ransack/nodes/sort.rb in ransack-1.8.1

- old
+ new

@@ -36,10 +36,10 @@ end def dir=(dir) dir = dir.downcase if dir @dir = - if ['asc'.freeze, 'desc'.freeze].freeze.include?(dir) + if dir == 'asc'.freeze || dir == 'desc'.freeze dir else 'asc'.freeze end end