Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A little less verbose logging in a few spots. Was overwhelming to see…

… attrs on every get.
  • Loading branch information...
commit 48f0cd260d6f2303a3c92c42676ca4cff81f495d 1 parent 442475a
@jnunemaker jnunemaker authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 lib/toy/querying.rb
View
10 lib/toy/querying.rb
@@ -4,9 +4,8 @@ module Querying
module ClassMethods
def get(id)
- value = store.read(id)
- log_operation(:get, self, store, id, value)
- load(id, value)
+ log_operation(:get, self, store, id)
+ load(id, store.read(id))
end
def get!(id)
@@ -26,9 +25,8 @@ def get_or_create(id)
end
def key?(id)
- value = store.key?(id)
- log_operation(:key, self, store, id, value)
- value
+ log_operation(:key, self, store, id)
+ store.key?(id)
end
alias :has_key? :key?
Please sign in to comment.
Something went wrong with that request. Please try again.