removes user locale validation

This commit is contained in:
rgarcia
2017-06-17 10:05:20 +02:00
parent 9c12680197
commit 9ebc5ccf34

View File

@@ -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