config/routes.rb in ahoy_email-0.5.2 vs config/routes.rb in ahoy_email-1.0.0
- old
+ new
@@ -1,8 +1,6 @@
Rails.application.routes.draw do
- unless respond_to?(:has_named_route?) && has_named_route?("ahoy_email_engine")
- mount AhoyEmail::Engine => "/ahoy"
- end
+ mount AhoyEmail::Engine => "/ahoy" if AhoyEmail.api
end
AhoyEmail::Engine.routes.draw do
scope module: "ahoy" do
resources :messages, only: [] do