Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e4e84fee8b
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.489 kB
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 != 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
Jump to Line
Something went wrong with that request. Please try again.