Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dev seeds independent on available locales #4733

Merged
merged 7 commits into from
Dec 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next Next commit
Don't enforce available locales in dev seeds
We're using Faker during this task, and it depends on English being
available as a fallback for methods like the Lorem ipsum ones.
  • Loading branch information
javierm committed Dec 13, 2021
commit dd28ea771363f4180a0681af2239a76a9c0974c5
1 change: 1 addition & 0 deletions lib/tasks/db.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace :db do
desc "Resets the database and loads it from db/dev_seeds.rb"
task :dev_seed, [:print_log] => [:environment] do |t, args|
@avoid_log = args[:print_log] == "avoid_log"
I18n.enforce_available_locales = false
load(Rails.root.join("db", "dev_seeds.rb"))
end
end