mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-05 00:54:29 +02:00
User validation for locale must have a list of String
This commit is contained in:
parent
9acab0298a
commit
ddee9f44a8
|
@ -38,7 +38,7 @@ class User < ApplicationRecord
|
||||||
|
|
||||||
has_many :checks
|
has_many :checks
|
||||||
validates :tos_accepted, acceptance: true
|
validates :tos_accepted, acceptance: true
|
||||||
validates :locale, inclusion: { in: I18n.available_locales }
|
validates :locale, inclusion: { in: I18n.available_locales.map(&:to_s) }
|
||||||
|
|
||||||
scope :notifications_disabled, -> { where(notifications_enabled: false) }
|
scope :notifications_disabled, -> { where(notifications_enabled: false) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue