File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/controllers/ops_controller/settings Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,11 @@ def pglogical_save_subscriptions
182
182
task_opts = { :action => "Save subscriptions for global region" , :userid => session [ :userid ] }
183
183
queue_opts = { :class_name => "MiqPglogical" , :method_name => "save_global_region" ,
184
184
:args => [ subscriptions_to_save , subsciptions_to_remove ] }
185
- ActiveRecord ::Base . yaml_column_permitted_classes |= [ subscriptions_to_save . first . class , subsciptions_to_remove . first . class ]
185
+ if ActiveRecord . respond_to? ( :yaml_column_permitted_classes )
186
+ ActiveRecord . yaml_column_permitted_classes = YamlPermittedClasses . app_yaml_permitted_classes | [ subscriptions_to_save . first . class , subsciptions_to_remove . first . class ]
187
+ else
188
+ ActiveRecord ::Base . yaml_column_permitted_classes = YamlPermittedClasses . app_yaml_permitted_classes | [ subscriptions_to_save . first . class , subsciptions_to_remove . first . class ]
189
+ end
186
190
when "remote"
187
191
task_opts = { :action => "Configure the database to be a replication remote region" ,
188
192
:userid => session [ :userid ] }
You can’t perform that action at this time.
0 commit comments