Permalink
Browse files

remove close as it appears unnecessary

  • Loading branch information...
1 parent d1d5c52 commit 672a56bf19118165e871ef5fb29dddd1efba4f24 Kevin Burke committed Jan 22, 2013
Showing with 0 additions and 11 deletions.
  1. +0 −4 app/app.rb
  2. +0 −7 app/models/db.rb
View
@@ -284,9 +284,5 @@ def stringify_data(data)
raise "Cannot stringify #{data.inspect}"
end
end
-
- after do
- DB.close
- end
end
end
View
@@ -10,9 +10,6 @@ def self.encode(object)
def self.decode(object)
Yajl::Parser.parse(Zlib::Inflate.inflate(object)) rescue nil
end
-
- def self.close
- end
end
class PostgresDB < AbstractDB
@@ -47,10 +44,6 @@ def self.count(scope)
result.getvalue(0, 0)
end
end
-
- def self.close
- #CONN.finish unless CONN.finished?
- end
end
class RedisDB < AbstractDB

0 comments on commit 672a56b

Please sign in to comment.