Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveranthony17 committed Nov 25, 2024
1 parent ba48c7f commit 5dd50b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:

- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Run migrations
run: bundle exec rails db:migrate

- name: Run tests
run: bundle exec rails test
Expand Down
2 changes: 1 addition & 1 deletion lib/moirai/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Engine < ::Rails::Engine
I18n.original_backend = I18n.backend
if ActiveRecord::Base.connection.data_source_exists?("moirai_translations") || ENV["RAILS_ENV"] == "test"
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::Moirai.new, I18n.backend)
# Moirai::TranslationSync.new.synchronize
Moirai::TranslationSync.new.synchronize
else
Rails.logger.warn("moirai disabled: tables have not been generated yet.")
end
Expand Down

0 comments on commit 5dd50b0

Please sign in to comment.