Module: CouchRest::Model::Translation

Includes:
ActiveModel::Translation
Included in:
Base
Defined in:
lib/couchrest/model/translation.rb

Instance Method Summary collapse

Instance Method Details

#i18n_scopeObject



17
18
19
# File 'lib/couchrest/model/translation.rb', line 17

def i18n_scope
  :couchrest
end

#lookup_ancestorsObject

:nodoc:



6
7
8
9
10
11
12
13
14
15
# File 'lib/couchrest/model/translation.rb', line 6

def lookup_ancestors #:nodoc:
  klass = self
  classes = [klass]
  return classes if klass == CouchRest::Model::Base

  while klass.superclass != CouchRest::Model::Base
    classes << klass = klass.superclass
  end
  classes
end