Checking for ActiveRecord::VERSION only if it has been defined.
Appraising with ActiveRecord 4 only if Ruby verison is >= 1.9.
Using Ruby 1.8.7 compatible hashes.