Update matchers.rb

ActiveRecord depend on ActiveModel, so if the latter is not defined, no need to check for the first.