Class ActiveRecord::Base
In: lib/gettext/active_record.rb
Parent: Object

Methods

Included Modules

GetText Validations

Public Class methods

((Deprecated)) Use ActionView::Helpers::ActiveRecordHelper::L10n.set_error_message_explanation instead.

Sets a your own explanation of the error message dialog.

  • msg: [single_msg, plural_msg]. Usually you need to call this with Nn_().
  • Returns: [single_msg, plural_msg]

((Deprecated)) Use ActionView::Helpers::ActiveRecordHelper::L10n.set_error_message_title instead.

Sets a your own title of error message dialog.

  • msg: [single_msg, plural_msg]. Usually you need to call this with Nn_().
  • Returns: [single_msg, plural_msg]

Sets the untranslate columns. (e.g.) untranslate :foo, :bar, :baz

Returns true if the column is set "untranslate". (e.g.) untranslate? :foo

Untranslate all of the tablename/fieldnames in this model class.

Returns true if "untranslate_all" is called. Otherwise false.

[Validate]