From 68d996c662bc187e745489b5f0d8f98752cc9db4 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Wed, 18 Apr 2018 14:52:37 +0200 Subject: [PATCH] Fix private class methods --- app/models/manager_refresh/inventory_object.rb | 2 ++ 1 file changed, 2 insertions(+) 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 #