rails-image-post-solution 0.1.6 → 0.1.7

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: 9509b647fc4754ab678ba3ec61d981770dd74a3a004d101b5199f63b0b25ad47
4
- data.tar.gz: 3255a0da4ea9db4b32560abfac145a5b018ab367d830550c84b92a4b805e60c3
3
+ metadata.gz: 5177474ff11773b95901978d5663140c9220f9264eb5069df3fd1a0d21135c4f
4
+ data.tar.gz: 9e4320b3daf678da0dd8981ca6d486c921fe03cb856b59dfe0b069c6fc0b77d8
5
5
  SHA512:
6
- metadata.gz: 363365fb52b8b43344d2d2850ca13f684bc401bb3991aac6da46335213a201e9b57087a3ef4f1b0daaee0fe1bbb8127955cb6fe43f2edc4234f7bb605c5fc473
7
- data.tar.gz: b0a6e9a4bfc78842ad43ee56856985a60943d9c25d90bed2b885b1f241bb7290374d20dbde13725ccf99c5ec07b67632c767565386348a8e6f8da170db4d4357
6
+ metadata.gz: dc7ed57192f84ab4506bece69cac84bed39853cd64231c4378941938531b5fcaf6bcad382d552b8ec8c04df4b6841b8e34f2bb4550b48c08865a2a399eebfc93
7
+ data.tar.gz: cca2b3a38545119616aef194c6e949901a7fe63d874aa398f0c3d939e0817cf09ff8007d52e0ef1bc4748921cd0b9d267b6f660acc046dc28e5e915f8d0b0f79
@@ -6,6 +6,19 @@ module RailsImagePostSolution
6
6
  class Engine < ::Rails::Engine
7
7
  isolate_namespace RailsImagePostSolution
8
8
 
9
+ # Explicitly set engine root
10
+ config.root = File.expand_path('../..', __dir__)
11
+
12
+ # Load routes when engine is initialized
13
+ config.after_initialize do
14
+ routes_path = RailsImagePostSolution::Engine.root.join("config", "routes.rb")
15
+ if File.exist?(routes_path)
16
+ RailsImagePostSolution::Engine.class_eval do
17
+ load routes_path
18
+ end
19
+ end
20
+ end
21
+
9
22
  config.generators do |g|
10
23
  g.test_framework :rspec
11
24
  g.fixture_replacement :factory_bot
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsImagePostSolution
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - dhq_boiler