Class: Coursemology::Polyglot::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Coursemology::Polyglot::Engine
- Defined in:
- lib/coursemology/polyglot/engine.rb
Class Method Summary collapse
- .after_initialize(_) ⇒ Object
- .eager_load! ⇒ Object
-
.initialize_engine(_) ⇒ Object
:nocov: These are Railties callbacks, which we can’t trigger in specs specifically.
Class Method Details
.after_initialize(_) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/coursemology/polyglot/engine.rb', line 14 def self.after_initialize(_) return if !Coursemology::Polyglot::Language.connected? || !Coursemology::Polyglot::Language.table_exists? Coursemology::Polyglot::Language.load_languages end |
.eager_load! ⇒ Object
3 4 5 6 |
# File 'lib/coursemology/polyglot/engine.rb', line 3 def self.eager_load! super Coursemology::Polyglot.eager_load! end |
.initialize_engine(_) ⇒ Object
:nocov: These are Railties callbacks, which we can’t trigger in specs specifically.
10 11 12 |
# File 'lib/coursemology/polyglot/engine.rb', line 10 def self.initialize_engine(_) Coursemology::Polyglot::Language.eager_load! end |