config/routes.rb in mailkick-0.2.1 vs config/routes.rb in mailkick-0.3.0

- old
+ new

@@ -1,6 +1,8 @@ Rails.application.routes.draw do - mount Mailkick::Engine => "/mailkick" if Mailkick.mount + unless respond_to?(:has_named_route?) && has_named_route?("mailkick") + mount Mailkick::Engine => "/mailkick" if Mailkick.mount + end end Mailkick::Engine.routes.draw do resources :subscriptions, only: [:show] do get :unsubscribe, on: :member