blob: 82661a328a5937aad3395b52802faf40ee613ca7 (
plain) (
tree)
|
|
# frozen_string_literal: true
module ActiveRecord
module Translation
include ActiveModel::Translation
# Set the lookup ancestors for ActiveModel.
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
# Set the i18n scope to overwrite ActiveModel.
def i18n_scope #:nodoc:
:activerecord
end
end
end
|