Skip to content

Commit

Permalink
Restore OpenStruct hash param
Browse files Browse the repository at this point in the history
  • Loading branch information
yoldas committed Mar 24, 2024
1 parent 9ca3882 commit a0ec77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/assets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def valid_indexes
end

def set_queries
@queries = valid_indexes.map { |val| OpenStruct.new(predicate: params['p' + val], object: params['o' + val]) }
@queries = valid_indexes.map { |val| OpenStruct.new({predicate: params['p' + val], object: params['o' + val]})} # rubocop:todo Style/OpenStructUse
end

# Never trust parameters from the scary internet, only allow the white list through.
Expand Down

0 comments on commit a0ec77c

Please sign in to comment.