Skip to content

Instantly share code, notes, and snippets.

@tizoc
Created September 23, 2009 15:25
Show Gist options
  • Save tizoc/192078 to your computer and use it in GitHub Desktop.
Save tizoc/192078 to your computer and use it in GitHub Desktop.
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