Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-06-16 05:55:20 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-06-19 18:16:30 +0400
commitab398555d6ba4bd1f2ebc3c70fcbbcc8a6ce3fc9 (patch)
treef25dbac1ccc1ac40c7aa0727709240b79894f86f /lib
parent728a547cb2483016b9be768f6c7045b70a36cbb5 (diff)
Back to green in mysql
Diffstat (limited to 'lib')
-rw-r--r--lib/diaspora/user/querying.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diaspora/user/querying.rb b/lib/diaspora/user/querying.rb
index d31001afa..6a7775b3f 100644
--- a/lib/diaspora/user/querying.rb
+++ b/lib/diaspora/user/querying.rb
@@ -55,7 +55,7 @@ module Diaspora
# @param row The row to get the id from.
# @return The id of the database row passed in.
def id_for row
- @@id_method_for_row ||= if Post.connection.class == ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
+ @@id_method_for_row ||= if defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) && ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
[:[], "id"]
else
:first