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