diff --git a/app/models/site/index.rb b/app/models/site/index.rb index a0910194..31431185 100644 --- a/app/models/site/index.rb +++ b/app/models/site/index.rb @@ -101,7 +101,7 @@ class Site end.each do |delta| locale, path = locale_and_path_from(delta.new_file[:path]) - site.posts(lang: locale).find(path).index! + posts(lang: locale).find(path).index! end end