# Cop supports --auto-correct.
Style/WhileUntilModifier:
Exclude:
- - 'app/helpers/queries_helper.rb'
- 'app/models/attachment.rb'
- 'app/models/project.rb'
- 'lib/redmine/unified_diff.rb'
end
end
param_key = options[:sort_param] || :sort
- sort_param = { param_key => query.sort_criteria.add(column.name, order).to_param }
- while sort_param.keys.first.to_s =~ /^(.+)\[(.+)\]$/
- sort_param = {$1 => {$2 => sort_param.values.first}}
- end
+ sort_param = {param_key => query.sort_criteria.add(column.name, order).to_param}
+ sort_param = {$1 => {$2 => sort_param.values.first}} while sort_param.keys.first.to_s =~ /^(.+)\[(.+)\]$/
link_options = {
:title => l(:label_sort_by, "\"#{column.caption}\""),
:class => css