Prior to this commit we had a hard-coded 0; there are other hard-coded score ranges throughout the code-base. These are unexplained magic numbers. The hope with this change is to provide a mechanism for Forem owners to adjust a configuration and see a change in behavior. Related to forem/forem-internal-eng#484 |
||
|---|---|---|
| .. | ||
| article_score_calculator_for_user.rb | ||
| basic.rb | ||
| find_featured_story.rb | ||
| large_forem_experimental.rb | ||
| latest.rb | ||
| tag.rb | ||
| timeframe.rb | ||
| variant_query.rb | ||