diff --git a/app/services/concerns/auto_publish_concern.rb b/app/services/concerns/auto_publish_concern.rb index 81f81aad..19160f02 100644 --- a/app/services/concerns/auto_publish_concern.rb +++ b/app/services/concerns/auto_publish_concern.rb @@ -6,7 +6,7 @@ module AutoPublishConcern included do def auto_publish! - DeployJob.perform_later(site.id) if site.auto_publish? + DeployJob.perform_later(site) if site.auto_publish? end end end diff --git a/app/services/post_service.rb b/app/services/post_service.rb index e9305c34..9cc41323 100644 --- a/app/services/post_service.rb +++ b/app/services/post_service.rb @@ -31,7 +31,7 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do # Crear un post anónimo, con opciones más limitadas. No usamos post. def create_anonymous # XXX: Confiamos en el parámetro de idioma porque estamos - # verificándolos extend ActiveSupport::Concernn Site#posts + # verificándolos en Site#posts self.post = site.posts(lang: locale) .build(layout: layout) # Los artículos anónimos siempre son borradores