Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
reckyy committed Dec 4, 2024
1 parent d77d438 commit 66605d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 66605d2

Please sign in to comment.