Add a backward compatibility hack for Ruby 1.8 with Public Activity