lib/opener/language_identifier/detector.rb in opener-language-identifier-4.3.0 vs lib/opener/language_identifier/detector.rb in opener-language-identifier-4.3.1
- old
+ new
@@ -13,10 +13,10 @@
# @param [Hash] options
#
#
def initialize backend = nil, fallback = nil
klass = Backend.const_get backend.to_sym if backend
- klass ||= LanguageDetection
+ klass ||= Backend::LanguageDetection
@backend = klass.new
klass = Backend.const_get fallback.to_sym if fallback
@fallback = klass.new if klass