Module: SequelRails::I18nSupport
- Defined in:
- lib/sequel_rails/railties/i18n_support.rb
Instance Method Summary collapse
-
#i18n_scope ⇒ Object
Set the i18n scope to overwrite ActiveModel.
- #lookup_ancestors ⇒ Object
Instance Method Details
#i18n_scope ⇒ Object
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_ancestors ⇒ Object
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 |