Make engine automount for now so that we can remove that bit from the main app

This commit is contained in:
Jorge Manrubia
2025-11-23 09:32:12 +01:00
parent d3f382c023
commit 7d47ec7534
+6
View File
@@ -4,6 +4,12 @@ module Fizzy
# moved from config/initializers/queenbee.rb
Queenbee.host_app = Fizzy
initializer "fizzy.saas.mount" do |app|
app.routes.append do
mount Fizzy::Saas::Engine => "/", as: "saas"
end
end
config.to_prepare do
Queenbee::Subscription.short_names = Subscription::SHORT_NAMES
Queenbee::ApiToken.token = Rails.application.credentials.dig(:queenbee_api_token)