From 4c6c81171bef7a243e21d0c2c5a0037fa771a29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 14 Jul 2023 15:27:57 +0200 Subject: [PATCH] Fix typo --- app/models/remote_storage_authorization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/remote_storage_authorization.rb b/app/models/remote_storage_authorization.rb index 13dfd9c..5e71c57 100644 --- a/app/models/remote_storage_authorization.rb +++ b/app/models/remote_storage_authorization.rb @@ -10,7 +10,7 @@ class RemoteStorageAuthorization < ApplicationRecord scope :expired, -> { where(expire_at: ..(DateTime.now)) } after_initialize do |a| - a.permisisons = [] if a.permissions == nil + a.permissions = [] if a.permissions == nil end before_create :generate_token