config/initializers/tramway.rb in tramway-landing-3.3.0.7 vs config/initializers/tramway.rb in tramway-landing-3.3.0.8
- old
+ new
@@ -1,3 +1,5 @@
# frozen_string_literal: true
-::Tramway.set_available_models(::Tramway::Landing::Block, project: :landing)
+Rails.application.config.after_initialize do
+ Tramway.set_available_models(Tramway::Landing::Block, project: :landing)
+end