removes user locale validation
This commit is contained in:
@@ -42,9 +42,6 @@ class User < ActiveRecord::Base
|
||||
validates :official_level, inclusion: {in: 0..5}
|
||||
validates :terms_of_service, acceptance: { allow_nil: false }, on: :create
|
||||
|
||||
validates :locale, inclusion: {in: I18n.available_locales.map(&:to_s),
|
||||
allow_nil: true}
|
||||
|
||||
validates_associated :organization, message: false
|
||||
|
||||
accepts_nested_attributes_for :organization, update_only: true
|
||||
|
||||
Reference in New Issue
Block a user