Permalink
Browse files

Remove Misc and add method to remove cache

  • Loading branch information...
1 parent 9b42728 commit 7e26555329dd6a0f06e38229a095118ccb80a24d @piotrmarat committed Aug 30, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/socky/server/cached_json_hash.rb
@@ -1,12 +1,15 @@
module Socky
module Server
class CachedJsonHash < Hash
- include Misc
def to_json
@json ||= super
end
+ def remove_cache
+ @json = nil
+ end
+
end
end
end

0 comments on commit 7e26555

Please sign in to comment.