Class: ActiveRecord::Base

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

Methods

- columns
- set_error_message_explanation
- set_error_message_title
- untranslate
- untranslate?
- untranslate_all
- untranslate_all?

Included Modules

- GetText::Rails
- Validations

Public Class methods
columns() [ source ]
set_error_message_explanation(msg)
[ source ]

((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]

set_error_message_title(msg)
[ source ]

((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]

untranslate(*w) [ source ]

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

untranslate?(columnname) [ source ]

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

untranslate_all() [ source ]

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

untranslate_all?() [ source ]

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