rails-image-post-solution 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5177474ff11773b95901978d5663140c9220f9264eb5069df3fd1a0d21135c4f
4
- data.tar.gz: 9e4320b3daf678da0dd8981ca6d486c921fe03cb856b59dfe0b069c6fc0b77d8
3
+ metadata.gz: 658c71c39ad56304e65bd91b5836c22b9a62c0c6850f928c90d38c7e59befc95
4
+ data.tar.gz: 6adc604cb0b0a31fcca15a32949dd0e1abc5db22fda7fa4a7bf3136d086c155c
5
5
  SHA512:
6
- metadata.gz: dc7ed57192f84ab4506bece69cac84bed39853cd64231c4378941938531b5fcaf6bcad382d552b8ec8c04df4b6841b8e34f2bb4550b48c08865a2a399eebfc93
7
- data.tar.gz: cca2b3a38545119616aef194c6e949901a7fe63d874aa398f0c3d939e0817cf09ff8007d52e0ef1bc4748921cd0b9d267b6f660acc046dc28e5e915f8d0b0f79
6
+ metadata.gz: 7f3d08bf7970740fb04fc4bef3633c88e9e66f15cd7c48b9b7970792fcf59dab2124b4b2e56209c6a0dc38062315f71e0c5c4026e12382fa8f21d253d1e9017a
7
+ data.tar.gz: 67dc5bab3ebd8704884fe3e3008284c54153db07e282e038b5e5d581b6e5249f83121029590116e74b99d69ddd0a9d7d8b21eed01e26454cb782574c1fb2d6b0
@@ -16,6 +16,16 @@ module RailsImagePostSolution
16
16
  RailsImagePostSolution::Engine.class_eval do
17
17
  load routes_path
18
18
  end
19
+
20
+ # After routes are loaded, make helpers available
21
+ ActiveSupport.on_load(:action_controller_base) do
22
+ include RailsImagePostSolution::Engine.routes.url_helpers
23
+ helper RailsImagePostSolution::Engine.routes.url_helpers
24
+ end
25
+
26
+ ActiveSupport.on_load(:action_view) do
27
+ include RailsImagePostSolution::Engine.routes.url_helpers
28
+ end
19
29
  end
20
30
  end
21
31
 
@@ -31,17 +41,5 @@ module RailsImagePostSolution
31
41
  initializer "rails_image_post_solution.assets" do |app|
32
42
  app.config.assets.paths << root.join("app/assets")
33
43
  end
34
-
35
- # Make engine route helpers available in the main application
36
- initializer "rails_image_post_solution.helpers" do
37
- ActiveSupport.on_load(:action_controller_base) do
38
- include RailsImagePostSolution::Engine.routes.url_helpers
39
- helper RailsImagePostSolution::Engine.routes.url_helpers
40
- end
41
-
42
- ActiveSupport.on_load(:action_view) do
43
- include RailsImagePostSolution::Engine.routes.url_helpers
44
- end
45
- end
46
44
  end
47
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsImagePostSolution
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-image-post-solution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - dhq_boiler