Sha256: 3ba72581f60c96abff6139f6d844611d7600c6ea823c9854abed3c8d97548b52

Contents?: true

Size: 331 Bytes

Versions: 8

Compression:

Stored size: 331 Bytes

Contents

module Sequel
  module Rails
    module TranslationSupport
      def i18n_scope
        :sequel
      end

      def lookup_ancestors
        # ActiveModel uses the name of ancestors. Exclude unnamed classes, like
        # those returned by Sequel::Model(...).
        super.reject { |x| x.name.nil? }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sequelize-rails-1.0.0 lib/sequel/rails/translation_support.rb
sequelize-rails-0.6.2 lib/sequel/rails/translation_support.rb
sequelize-rails-0.6.1 lib/sequel/rails/translation_support.rb
sequelize-rails-0.6.0 lib/sequel/rails/translation_support.rb
sequelize-rails-0.5.0 lib/sequel/rails/translation_support.rb
sequelize-rails-0.4.1 lib/sequel/rails/translation_support.rb
sequelize-rails-0.4.0 lib/sequel/rails/translation_support.rb
sequelize-rails-0.3.0 lib/sequel/rails/translation_support.rb