Skip to content

Commit

Permalink
Added popularity_to_stars helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
mooncowboy committed Mar 12, 2024
1 parent 1dcd4e5 commit 1d78ed5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
module ApplicationHelper
def popularity_to_stars(num)
(num / 20.0).ceil
end
end

0 comments on commit 1d78ed5

Please sign in to comment.