Better formatting on ActiveModel::Translation
This commit is contained in:
parent
c1132f7093
commit
a2bfa5fa30
@ -18,12 +18,12 @@ module ActiveModel
|
||||
#
|
||||
# This also provides the required class methods for hooking into the
|
||||
# Rails internationalization API, including being able to define a
|
||||
# class based i18n_scope and lookup_ancestors to find translations in
|
||||
# class based +i18n_scope+ and +lookup_ancestors+ to find translations in
|
||||
# parent classes.
|
||||
module Translation
|
||||
include ActiveModel::Naming
|
||||
|
||||
# Returns the i18n_scope for the class. Overwrite if you want custom lookup.
|
||||
# Returns the +i18n_scope+ for the class. Overwrite if you want custom lookup.
|
||||
def i18n_scope
|
||||
:activemodel
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user