mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 09:56:43 +01:00
fix: fix assets manifest
This commit is contained in:
parent
0e59e80686
commit
f38d25ab21
2 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,4 @@
|
|||
//= link_tree ../images
|
||||
//= link_directory ../stylesheets .css
|
||||
//= link_tree ../../javascript .js
|
||||
//= link_tree ../../../vendor/javascript .js
|
||||
|
||||
//= link application.js
|
|
@ -3,6 +3,7 @@ class RecountWordsJob < ApplicationJob
|
|||
Story.find_each do |story|
|
||||
word_count = 0
|
||||
story.chapters.each do |chapter|
|
||||
next unless chapter.body
|
||||
count = chapter.body.split(' ').size
|
||||
chapter.update_columns(
|
||||
num_words: count
|
||||
|
|
Loading…
Reference in a new issue