# File src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_rails/lib/union_station_hooks_rails.rb, line 173
    def require_and_check_union_station_hooks_core
      if !defined?(UnionStationHooks::VERSION_STRING)
        require 'union_station_hooks_core'
      end

      # If you update the dependency version here, also update
      # the version in the gemspec and in the Gemfile.
      compatible = UnionStationHooks::MAJOR_VERSION == 2 &&
        ush_core_minor_and_tiny_version_compatible?
      if !compatible
        raise "This version of the union_station_hooks_rails gem " \
          "(#{VERSION_STRING}) is only compatible with the " \
          "union_station_hooks_core gem 2.x.x, starting from v2.0.3. " \
          "However, you have loaded union_station_hooks_core #{UnionStationHooks::VERSION_STRING}"
      end
    end