Skip to content

Commit 9538404

Browse files
committed
Hoist find! up into base class
1 parent 88b9794 commit 9538404

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/foobara/redis_crud_driver.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ def find(record_id)
7777
end
7878
end
7979

80-
# TODO: move this up to base class as a default
81-
def find!(record_id)
82-
attributes = find(record_id)
83-
84-
unless attributes
85-
raise CannotFindError.new(record_id, "does not exist")
86-
end
87-
88-
attributes
89-
end
90-
9180
def insert(attributes)
9281
attributes = Util.deep_dup(attributes)
9382

0 commit comments

Comments
 (0)