We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2afc9 commit aef76d8Copy full SHA for aef76d8
1 file changed
app/presenters/how_you_found_us_presenter.rb
@@ -14,7 +14,7 @@ def by_percentage
14
exact = (count / total_responses.to_f) * 100
15
percentage_value = exact.floor
16
remainder = exact - percentage_value
17
- { how: how, percentage_value: percentage_value, remainder: remainder }
+ { how:, percentage_value:, remainder: }
18
end
19
20
allocated_so_far = entries.sum { |entry| entry[:percentage_value] }
0 commit comments