Created
September 23, 2009 15:25
-
-
Save tizoc/192078 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vendor/ohm-0.0.17/lib/ohm.rb b/vendor/ohm-0.0.17/lib/ohm.rb | |
index 3496ec3..6beb682 100644 | |
--- a/vendor/ohm-0.0.17/lib/ohm.rb | |
+++ b/vendor/ohm-0.0.17/lib/ohm.rb | |
@@ -535,7 +535,7 @@ module Ohm | |
end | |
def write_remote(att, value) | |
- db.set(key(att), value) | |
+ value.nil? ? db.del(att) : db.set(key(att), value) | |
end | |
def read_locals(attrs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment