diff --git a/app/models/manager_refresh/inventory_object.rb b/app/models/manager_refresh/inventory_object.rb index 97d962c29cb..6d6797ff6fb 100644 --- a/app/models/manager_refresh/inventory_object.rb +++ b/app/models/manager_refresh/inventory_object.rb @@ -215,12 +215,14 @@ def self.define_data_writer(data_key) public_send(:[]=, data_key.to_s.delete("=").to_sym, value) end end + private_class_method :define_data_writer def self.define_data_reader(data_key) define_method(data_key) do public_send(:[], data_key) end end + private_class_method :define_data_reader # Return true passed key representing a getter is an association #