Class | ActiveRecord::Errors |
In: |
lib/rails/localized_active_record.rb
|
Parent: | Object |
Reloads the localization
# File lib/rails/localized_active_record.rb, line 20 20: def self.relocalize 21: @@default_error_messages.update({ 22: :inclusion => :error_message_inclusion.l, 23: :exclusion => :error_message_exclusion.l, 24: :invalid => :error_message_invalid.l, 25: :confirmation => :error_message_confirmation.l, 26: :accepted => :error_message_accepted.l, 27: :empty => :error_message_empty.l, 28: :blank => :error_message_blank.l, 29: :too_long => :error_message_too_long.l, 30: :too_short => :error_message_too_short.l, 31: :wrong_length => :error_message_wrong_length.l, 32: :taken => :error_message_taken.l, 33: :not_a_number => :error_message_not_a_number.l, 34: }) 35: end