class Coursemology::Polyglot::Engine
Public Class Methods
after_initialize(_)
click to toggle source
# 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!()
click to toggle source
Calls superclass method
# File lib/coursemology/polyglot/engine.rb, line 3 def self.eager_load! super Coursemology::Polyglot.eager_load! end
initialize_engine(_)
click to toggle source
:nocov: These are Railties callbacks, which we can’t trigger in specs specifically.
# File lib/coursemology/polyglot/engine.rb, line 10 def self.initialize_engine(_) Coursemology::Polyglot::Language.eager_load! end