code: def fixtures_class
        if defined?(ActiveRecord::FixtureSet)
          ActiveRecord::FixtureSet
        elsif defined?(ActiveRecord::Fixtures)
          ActiveRecord::Fixtures
        else
          ::Fixtures
        end
      end
docs: Rails 3.0 and 3.1+ support