initforthe-routes 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
|
|
1
1
|
module Initforthe::Routes
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
|
4
|
-
Router.send :include, ::Rails.application.routes.url_helpers
|
5
|
-
Router.send :include, ::Rails.application.routes.mounted_helpers
|
3
|
+
config.after_initialize do
|
4
|
+
::Initforthe::Routes::Router.send :include, ::Rails.application.routes.url_helpers
|
5
|
+
::Initforthe::Routes::Router.send :include, ::Rails.application.routes.mounted_helpers
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|