Skip to content

Commit

Permalink
Merge branch 'feature/t8' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarada87 committed Dec 31, 2020
2 parents 678e5cf + be8467e commit fb71af4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/boxenn/repositories/source_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def find_by(primary_keys)
def save(primary_keys, attributes)
raise NotImplementedError
end

def destroy(primary_keys_hash)
raise NotImplementedError
end
end
end
end
4 changes: 4 additions & 0 deletions lib/boxenn/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def save(entity)
save_record(entity.primary_keys_hash, attributes)
end

def destroy(entity)
source_wrapper.destroy(entity.primary_keys_hash)
end

protected

def retrieve_record(**attributes)
Expand Down

0 comments on commit fb71af4

Please sign in to comment.