diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-06-16 05:55:20 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-06-19 18:16:30 +0400 |
commit | ab398555d6ba4bd1f2ebc3c70fcbbcc8a6ce3fc9 (patch) | |
tree | f25dbac1ccc1ac40c7aa0727709240b79894f86f /lib | |
parent | 728a547cb2483016b9be768f6c7045b70a36cbb5 (diff) |
Back to green in mysql
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diaspora/user/querying.rb | 2 |
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 |