lib/thumbs_up.rb in thumbs_up-0.6.2 vs lib/thumbs_up.rb in thumbs_up-0.6.3
- old
+ new
@@ -2,12 +2,15 @@
require 'acts_as_voter'
require 'has_karma'
module ThumbsUp
module Base
- # Check if we're connected to a MySQL database.
- def mysql?
- ActiveRecord::Base.connection.adapter_name == 'MySQL'
+ def quoted_true
+ ActiveRecord::Base.connection.quoted_true
+ end
+
+ def quoted_false
+ ActiveRecord::Base.connection.quoted_false
end
end
end
ActiveRecord::Base.send(:include, ThumbsUp::ActsAsVoteable)