app/models/translation.rb in blacklight-spotlight-3.5.0.4 vs app/models/translation.rb in blacklight-spotlight-3.6.0.beta1
- old
+ new
@@ -1,6 +1,8 @@
# frozen_string_literal: true
+require 'i18n/backend/active_record'
+
unless defined?(Translation)
Translation = I18n::Backend::ActiveRecord::Translation
Translation.include Spotlight::CustomTranslationExtension
# Work-around for https://github.com/svenfuchs/i18n-active_record/pull/133