Skip to content

Commit a7d66f2

Browse files
authored
Merge pull request #8964 from jrafanie/ensure_subscription_class_is_yaml_column_permitted
Permit subscription classes to be serialized in queue args
2 parents 50f48ae + e228bd8 commit a7d66f2

File tree

1 file changed

+1
-0
lines changed
  • app/controllers/ops_controller/settings

1 file changed

+1
-0
lines changed

app/controllers/ops_controller/settings/common.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def pglogical_save_subscriptions
182182
task_opts = {:action => "Save subscriptions for global region", :userid => session[:userid]}
183183
queue_opts = {:class_name => "MiqPglogical", :method_name => "save_global_region",
184184
:args => [subscriptions_to_save, subsciptions_to_remove]}
185+
ActiveRecord::Base.yaml_column_permitted_classes |= [subscriptions_to_save.first.class, subsciptions_to_remove.first.class]
185186
when "remote"
186187
task_opts = {:action => "Configure the database to be a replication remote region",
187188
:userid => session[:userid]}

0 commit comments

Comments
 (0)