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_tree ../images
|
||||||
//= link_directory ../stylesheets .css
|
//= link_directory ../stylesheets .css
|
||||||
//= link_tree ../../javascript .js
|
|
||||||
//= link_tree ../../../vendor/javascript .js
|
|
||||||
|
|
||||||
//= link application.js
|
//= link application.js
|
|
@ -3,6 +3,7 @@ class RecountWordsJob < ApplicationJob
|
||||||
Story.find_each do |story|
|
Story.find_each do |story|
|
||||||
word_count = 0
|
word_count = 0
|
||||||
story.chapters.each do |chapter|
|
story.chapters.each do |chapter|
|
||||||
|
next unless chapter.body
|
||||||
count = chapter.body.split(' ').size
|
count = chapter.body.split(' ').size
|
||||||
chapter.update_columns(
|
chapter.update_columns(
|
||||||
num_words: count
|
num_words: count
|
||||||
|
|
Loading…
Reference in a new issue