Skip to content

Commit 087db4d

Browse files
committed
Fix(ProductTab): Use Alchemy.configure to set tab
If we add this tab `after_initialize` it is very hard to change it while the app boots.
1 parent 9f824ec commit 087db4d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

config/initializers/alchemy.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
end
4646
end
4747

48-
Rails.application.config.after_initialize do
48+
Rails.application.config.to_prepare do
4949
Alchemy::Modules.register_module(alchemy_module)
50+
end
51+
52+
Alchemy.configure do |config|
5053
Alchemy.config.link_dialog_tabs.add("Alchemy::Admin::LinkDialog::ProductTab")
5154
end

0 commit comments

Comments
 (0)