wedding-planner/config/initializers/acts_as_tenant.rb
Manuel Bustillo a5d3062654
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 48s
Run unit tests / check-licenses (pull_request) Successful in 55s
Run unit tests / copyright_notice (pull_request) Successful in 1m16s
Run unit tests / unit_tests (pull_request) Failing after 3m39s
Run unit tests / build-static-assets (pull_request) Has been skipped
Define and seed an invitation model
2025-01-27 20:08:28 +01:00

10 lines
222 B
Ruby

# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
ActsAsTenant.configure do |config|
config.require_tenant = !Rails.env.test?
end
Rails.application.console do
ActsAsTenant.current_tenant = Wedding.first
end