mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-29 19:26:22 +00:00
feat: add boolean method for automatic publications #13244
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
2c8ab01cc7
commit
c17cd0ac27
1 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,9 @@
|
|||
|
||||
# Un sitio es un directorio dentro del directorio de sitios de cada
|
||||
# Usuaria
|
||||
class Site < ApplicationRecord
|
||||
class def create_njalla_records?
|
||||
!site.name.end_with?('.')
|
||||
end < ApplicationRecord
|
||||
include FriendlyId
|
||||
include Site::Forms
|
||||
include Site::FindAndReplace
|
||||
|
@ -461,6 +463,11 @@ class Site < ApplicationRecord
|
|||
@docs = nil
|
||||
end
|
||||
|
||||
# @return [Boolean]
|
||||
def automatic_publication?
|
||||
@auto_publ = false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Asegurarse que el sitio tenga una llave privada
|
||||
|
|
Loading…
Reference in a new issue