Skip to content

Commit

Permalink
Autosave the EMS's provider to allow delegates
Browse files Browse the repository at this point in the history
Delegating things like endpoints, name, and zone to the provider only
works when the base relation has autosave => true
  • Loading branch information
agrare committed Oct 31, 2023
1 parent e1341c7 commit 8b13d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def self.create_from_params(params, endpoints, authentications)
end
end

belongs_to :provider
belongs_to :provider, :autosave => true
has_many :child_managers, :class_name => 'ExtManagementSystem', :foreign_key => 'parent_ems_id'

belongs_to :tenant
Expand Down

0 comments on commit 8b13d7e

Please sign in to comment.