Sha256: 13fb73a33385a9e52f48357f80d32dab9c436103f831290017d39258e56b82da

Contents?: true

Size: 447 Bytes

Versions: 9

Compression:

Stored size: 447 Bytes

Contents

module CouchRest
  module Model
    module Translation
      include ActiveModel::Translation

      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

      def i18n_scope
        :couchrest
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
couchrest_model-2.2.0.beta2 lib/couchrest/model/translation.rb
couchrest_model-2.2.0.beta1 lib/couchrest/model/translation.rb
couchrest_model-2.1.0.rc1 lib/couchrest/model/translation.rb
couchrest_model-2.1.0.beta2 lib/couchrest/model/translation.rb
couchrest_model-2.1.0.beta1 lib/couchrest/model/translation.rb
couchrest_model-2.0.4 lib/couchrest/model/translation.rb
couchrest_model-2.0.3 lib/couchrest/model/translation.rb
couchrest_model-2.0.1 lib/couchrest/model/translation.rb
couchrest_model-2.0.0 lib/couchrest/model/translation.rb