lib/thumbs_up.rb in thumbs_up-0.5.7 vs lib/thumbs_up.rb in thumbs_up-0.6.0

- old
+ new

@@ -1,7 +1,16 @@ require 'acts_as_voteable' 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' + end + end +end + ActiveRecord::Base.send(:include, ThumbsUp::ActsAsVoteable) ActiveRecord::Base.send(:include, ThumbsUp::ActsAsVoter) ActiveRecord::Base.send(:include, ThumbsUp::Karma)