From 66605d2bdee1ac0089bd4182372a65b51c0dae2c Mon Sep 17 00:00:00 2001 From: reckyy Date: Wed, 4 Dec 2024 22:00:42 +0900 Subject: [PATCH] rubocop --- app/models/user.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 14659b1dd21..85dd640e565 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -5,7 +5,7 @@ class User < ApplicationRecord include Taggable include Searchable - attr_accessor :credit_card_payment, :role + attr_accessor :credit_card_payment, :role, :uploaded_avatar authenticates_with_sorcery! VALID_SORT_COLUMNS = %w[id login_name company_id last_activity_at created_at report comment asc desc].freeze @@ -202,8 +202,6 @@ class User < ApplicationRecord validates :login_name, length: { minimum: 3, message: 'は3文字以上にしてください。' } - attr_accessor :uploaded_avatar - validate :validate_uploaded_avatar_content_type validates :country_code, inclusion: { in: ISO3166::Country.codes }, allow_blank: true