config/initializers/tramway.rb in tramway-partner-1.0.4.1 vs config/initializers/tramway.rb in tramway-partner-1.0.4.2
- old
+ new
@@ -1,7 +1,9 @@
# frozen_string_literal: true
-::Tramway.set_available_models(
- ::Tramway::Partner::Organization,
- ::Tramway::Partner::Partnership,
- project: :partner
-)
+Rails.application.config.after_initialize do
+ Tramway.set_available_models(
+ Tramway::Partner::Organization,
+ Tramway::Partner::Partnership,
+ project: :partner
+ )
+end