app/models/auther/account.rb in auther-13.6.0 vs app/models/auther/account.rb in auther-14.0.0

- old
+ new

@@ -1,20 +1,19 @@ # frozen_string_literal: true require "active_model" module Auther - ACCOUNT_ATTRIBUTES = %i[ - name - encrypted_login - encrypted_password - paths - authorized_url - deauthorized_url - ].freeze - # Represents an authenticatable account. - Account = Struct.new(*ACCOUNT_ATTRIBUTES, keyword_init: true) do + Account = Struct.new( + :name, + :encrypted_login, + :encrypted_password, + :paths, + :authorized_url, + :deauthorized_url, + keyword_init: true + ) do include ActiveModel::Validations validates :name, :encrypted_login, :encrypted_password, presence: true validate :paths_type