ddd_domain 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ddd_domain/version.rb +1 -1
- data/lib/generators/domains/domains_generator.rb +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8655ebcc1282f629d085634b9060c92d5bb2ec952c30405a12b5e0e779437179
|
4
|
+
data.tar.gz: 5a6e5a2cdbbde6c6c90b5202c2ef3fc204d297d9e8426b57c14b5967eab086a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95ab0b07796e8a30c38c634be4c05d5ff423fa255d71c84f784b03d9fb43ce2105e28db522e12b0b9fc01619d57f7bd1e19b71bf517afca10fb84f0d9d2e3fb
|
7
|
+
data.tar.gz: 53f6bd0c71eb2d4f6642ffcc1a8bdf1724ff6a68d30e6c3681672867d2e8739d2f1d5409b1f6c6824d978cafebae0e52a5fcfe087c827a77edecf8a682ff2098
|
data/lib/ddd_domain/version.rb
CHANGED
@@ -6,17 +6,19 @@ class DomainsGenerator < Rails::Generators::NamedBase
|
|
6
6
|
create_file "app/domains/#{file_name}/.keep"
|
7
7
|
|
8
8
|
if File.exists? "config/initializers/ddd_domain.rb"
|
9
|
-
inject_into_file 'config/initializers/ddd_domain.rb' do
|
9
|
+
inject_into_file 'config/initializers/ddd_domain.rb', :before => "end" do
|
10
10
|
<<-"RUBY"
|
11
|
+
config.paths.add 'app/domains/#{file_name}', eager_load: true
|
12
|
+
RUBY
|
13
|
+
end
|
14
|
+
else
|
15
|
+
create_file 'config/initializers/ddd_domain.rb' do
|
16
|
+
<<~"RUBY"
|
11
17
|
Rails.configuration do |config|
|
12
18
|
config.paths.add 'app/domains/#{file_name}', eager_load: true
|
13
19
|
end
|
14
20
|
RUBY
|
15
21
|
end
|
16
|
-
else
|
17
|
-
inject_into_file 'config/initializers/ddd_domain.rb', :before => "end" do
|
18
|
-
config.paths.add 'app/domains/#{file_name}', eager_load: true
|
19
|
-
end
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|