Skip to content

Commit

Permalink
Freeze arrays in FormBuilder#sort_array
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Jul 23, 2016
1 parent 2b2bd1d commit 5280ecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ransack/helpers/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ def mapped_values(values)

def sort_array
[
['asc'.freeze, object.translate('asc'.freeze)],
['desc'.freeze, object.translate('desc'.freeze)]
]
['asc'.freeze, object.translate('asc'.freeze)].freeze,
['desc'.freeze, object.translate('desc'.freeze)].freeze
].freeze
end

def combinator_choices
Expand Down

0 comments on commit 5280ecf

Please sign in to comment.