From d0748ab2e9c93206f7082b5a4f53359cd298ce6c Mon Sep 17 00:00:00 2001 From: Jim Benton Date: Sat, 2 Sep 2023 14:31:26 -0500 Subject: [PATCH] add missing methods to null objects --- app/nulls/null_borrow_policy.rb | 4 ++++ app/nulls/null_item.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/nulls/null_borrow_policy.rb b/app/nulls/null_borrow_policy.rb index e760a531a..7f45ded6b 100644 --- a/app/nulls/null_borrow_policy.rb +++ b/app/nulls/null_borrow_policy.rb @@ -18,4 +18,8 @@ def duration def member_renewable? false end + + def consumable? + false + end end diff --git a/app/nulls/null_item.rb b/app/nulls/null_item.rb index 273770807..97a1592a4 100644 --- a/app/nulls/null_item.rb +++ b/app/nulls/null_item.rb @@ -44,4 +44,8 @@ def marked_for_destruction? def next_hold nil end + + def active_holds + [] + end end