mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-29 21:46: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
|
# Un sitio es un directorio dentro del directorio de sitios de cada
|
||||||
# Usuaria
|
# Usuaria
|
||||||
class Site < ApplicationRecord
|
class def create_njalla_records?
|
||||||
|
!site.name.end_with?('.')
|
||||||
|
end < ApplicationRecord
|
||||||
include FriendlyId
|
include FriendlyId
|
||||||
include Site::Forms
|
include Site::Forms
|
||||||
include Site::FindAndReplace
|
include Site::FindAndReplace
|
||||||
|
@ -461,6 +463,11 @@ class Site < ApplicationRecord
|
||||||
@docs = nil
|
@docs = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
def automatic_publication?
|
||||||
|
@auto_publ = false
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Asegurarse que el sitio tenga una llave privada
|
# Asegurarse que el sitio tenga una llave privada
|
||||||
|
|
Loading…
Reference in a new issue