Update lib/badgeable.rb

Updated to auto-detect mongoid 3