From 8033434a2f7c7ac85e131f70093754e461672ad6 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Aug 2023 14:43:38 -0700 Subject: [PATCH] Delete unused deferred_attributes lib No idea what this was! Goodbye! --- lib/deferred_attributes.rb | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 lib/deferred_attributes.rb diff --git a/lib/deferred_attributes.rb b/lib/deferred_attributes.rb deleted file mode 100644 index d044d4d3..00000000 --- a/lib/deferred_attributes.rb +++ /dev/null @@ -1,10 +0,0 @@ -module DeferredAttributes - def attr_deferred(name, &block) - instance_variable_name = "@#{name}" - define_method name do - value = instance_variable_get(instance_variable_name) - return value if value - instance_variable_set(instance_variable_name, self.instance_eval(&block)) - end - end -end