Module: ActiveRecord::Translation
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Extended In:
| |
| Defined in: | activerecord/lib/active_record/translation.rb |
Instance Method Summary
-
#i18n_scope
Internal use only
Set the i18n scope to override
::ActiveModel. -
#lookup_ancestors
Internal use only
Set the lookup ancestors for
::ActiveModel.
Instance Method Details
#i18n_scope
This method is for internal use only.
Set the i18n scope to override ::ActiveModel.
# File 'activerecord/lib/active_record/translation.rb', line 18
def i18n_scope # :nodoc: :activerecord end
#lookup_ancestors
This method is for internal use only.
Set the lookup ancestors for ::ActiveModel.
# File 'activerecord/lib/active_record/translation.rb', line 6
def lookup_ancestors # :nodoc: klass = self classes = [klass] return classes if klass == ActiveRecord::Base while !klass.base_class? classes << klass = klass.superclass end classes end