instance method
i18n_keys
Ruby on Rails 8.0.4
Since v7.1.6 PrivateSignature
i18n_keys()
No documentation comment.
Source
# File activemodel/lib/active_model/naming.rb, line 220
def i18n_keys
@i18n_keys ||= if @klass.respond_to?(:lookup_ancestors)
@klass.lookup_ancestors.map { |klass| klass.model_name.i18n_key }
else
[]
end
end
Defined in activemodel/lib/active_model/naming.rb line 220
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Name