mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 15:36:22 +00:00
fix: evitar advertencias
This commit is contained in:
parent
a4062c5f54
commit
2c8dbc885c
5 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Forma de ingreso a Sutty
|
# Forma de ingreso a Sutty
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
include ExceptionHandler
|
include ExceptionHandler
|
||||||
include Pundit
|
include Pundit::Authorization
|
||||||
|
|
||||||
protect_from_forgery with: :null_session, prepend: true
|
protect_from_forgery with: :null_session, prepend: true
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ module Tienda
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
encrypts :tienda_api_key
|
has_encrypted :tienda_api_key
|
||||||
|
|
||||||
def tienda?
|
def tienda?
|
||||||
tienda_api_key.present? && tienda_url.present?
|
tienda_api_key.present? && tienda_url.present?
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Site < ApplicationRecord
|
||||||
# tiene acceso pero los datos se guardan cifrados en el sitio. Esto
|
# tiene acceso pero los datos se guardan cifrados en el sitio. Esto
|
||||||
# protege información privada en repositorios públicos, pero no la
|
# protege información privada en repositorios públicos, pero no la
|
||||||
# protege de acceso al panel de Sutty!
|
# protege de acceso al panel de Sutty!
|
||||||
encrypts :private_key
|
has_encrypted :private_key
|
||||||
|
|
||||||
validates :name, uniqueness: true, hostname: {
|
validates :name, uniqueness: true, hostname: {
|
||||||
allow_root_label: true
|
allow_root_label: true
|
||||||
|
|
|
@ -5,7 +5,7 @@ class Site
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
encrypts :api_key
|
has_encrypted :api_key
|
||||||
before_save :add_api_key_if_missing!
|
before_save :add_api_key_if_missing!
|
||||||
|
|
||||||
# Genera mensajes secretos que podemos usar para la API de cada
|
# Genera mensajes secretos que podemos usar para la API de cada
|
||||||
|
|
|
@ -8,7 +8,7 @@ class Site
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
encrypts :private_key_pem
|
has_encrypted :private_key_pem
|
||||||
|
|
||||||
has_many :activity_pubs
|
has_many :activity_pubs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue