Skip to content

Commit

Permalink
add missing methods to null objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jim committed Sep 2, 2023
1 parent d01d77a commit d0748ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/nulls/null_borrow_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ def duration
def member_renewable?
false
end

def consumable?
false
end
end
4 changes: 4 additions & 0 deletions app/nulls/null_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ def marked_for_destruction?
def next_hold
nil
end

def active_holds
[]
end
end

0 comments on commit d0748ab

Please sign in to comment.