Story: return true from recalculate_all_hotnesses!
this is usually called from the console, and true is better than a giant array of every Story object
This commit is contained in:
parent
452c75908d
commit
270939b5a4
|
@ -94,6 +94,7 @@ class Story < ActiveRecord::Base
|
|||
Story.all.order("id DESC").each do |s|
|
||||
s.recalculate_hotness!
|
||||
end
|
||||
true
|
||||
end
|
||||
|
||||
def as_json(options = {})
|
||||
|
|
Loading…
Reference in a new issue