Module: SequelRails::I18nSupport

Defined in:
lib/sequel_rails/railties/i18n_support.rb

Instance Method Summary collapse

Instance Method Details

#i18n_scopeObject

Set the i18n scope to overwrite ActiveModel.



4
5
6
# File 'lib/sequel_rails/railties/i18n_support.rb', line 4

def i18n_scope #:nodoc:
  :sequel
end

#lookup_ancestorsObject



8
9
10
11
12
# File 'lib/sequel_rails/railties/i18n_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