5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-16 04:22:20 +00:00

fix: evitar advertencias

This commit is contained in:
f 2024-02-23 12:53:56 -03:00
parent a4062c5f54
commit 2c8dbc885c
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
# Forma de ingreso a Sutty
class ApplicationController < ActionController::Base
include ExceptionHandler
include Pundit
include Pundit::Authorization
protect_from_forgery with: :null_session, prepend: true

View file

@ -5,7 +5,7 @@ module Tienda
extend ActiveSupport::Concern
included do
encrypts :tienda_api_key
has_encrypted :tienda_api_key
def tienda?
tienda_api_key.present? && tienda_url.present?

View file

@ -17,7 +17,7 @@ class Site < ApplicationRecord
# tiene acceso pero los datos se guardan cifrados en el sitio. Esto
# protege información privada en repositorios públicos, pero no la
# protege de acceso al panel de Sutty!
encrypts :private_key
has_encrypted :private_key
validates :name, uniqueness: true, hostname: {
allow_root_label: true

View file

@ -5,7 +5,7 @@ class Site
extend ActiveSupport::Concern
included do
encrypts :api_key
has_encrypted :api_key
before_save :add_api_key_if_missing!
# Genera mensajes secretos que podemos usar para la API de cada

View file

@ -8,7 +8,7 @@ class Site
extend ActiveSupport::Concern
included do
encrypts :private_key_pem
has_encrypted :private_key_pem
has_many :activity_pubs