Skip to content

Commit

Permalink
Fix missing Ransack::Constants::ASC constant
Browse files Browse the repository at this point in the history
Missed this constant 😳

Closes #700 (thanks @igorkasyanchuk).
  • Loading branch information
jonatack committed Jul 19, 2016
1 parent 73e7da9 commit aece23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ransack/helpers/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def mapped_values(values)

def sort_array
[
[Constants::ASC, object.translate(Constants::ASC)],
[Constants::DESC, object.translate(Constants::DESC)]
['asc'.freeze, object.translate('asc'.freeze)],
['desc'.freeze, object.translate('desc'.freeze)]
]
end

Expand Down

0 comments on commit aece23c

Please sign in to comment.