5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-29 19:36:21 +00:00

feat: add boolean method for automatic publications #13244
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2023-08-18 17:37:40 -03:00
parent 2c8ab01cc7
commit c17cd0ac27

View file

@ -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