def require_and_check_union_station_hooks_core
if !defined?(UnionStationHooks::VERSION_STRING)
require 'union_station_hooks_core'
end
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