require 'geo_redirect/middleware'
require 'geo_redirect/version'

module GeoRedirect

  # Load rake tasks
  require 'geo_redirect/railtie' if defined?(Rails)

end

require 'geo_redirect/middleware'
require 'geo_redirect/version'

module GeoRedirect

  # Load rake tasks
  if defined? Rails
    require 'geo_redirect/railtie'
  end

end

Convert inline if to block
Convert inline if to block

This was the simplecov coverage is no longer 100%,
because we don't test the railtie (see issue #14).
