Permalink
Browse files

fixed that this needed to return early

  • Loading branch information...
JackDanger committed Jun 15, 2011
1 parent 97adb6f commit d63b0d2010c8a5d97d32c8fdcfad7dc2a5ad2d6e
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/cached_value.rb
View
@@ -90,6 +90,8 @@ def soft_update(value)
end
def update_cache(value)
+ return unless has_cache?
+ return unless CachedValues.run?
soft_update value
return if @owner.new_record? || !CachedValues.perform_save?

0 comments on commit d63b0d2

Please sign in to comment.