Module: Sequel::Rails::TranslationSupport

Defined in:
lib/sequel/rails/translation_support.rb

Instance Method Summary collapse

Instance Method Details

#i18n_scopeObject



4
5
6
# File 'lib/sequel/rails/translation_support.rb', line 4

def i18n_scope
  :sequel
end

#lookup_ancestorsObject



8
9
10
11
12
# File 'lib/sequel/rails/translation_support.rb', line 8

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