active_generator 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e70ca966bf875c238e485000e865bff41fc05ef38a711826599d34f5676645f
|
4
|
+
data.tar.gz: e1a04f48aac423b3860b6858431b83822b9f2cb4c36041d77ed67a3bb54ccfb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95db7163f43b6d31f66ecae9a65e5a54bad39664be6a6e9ebef1590ef4e4f323847899d5fbbbb944a27b6946475be1ef7733f29b478a827d31be57a376867c2
|
7
|
+
data.tar.gz: af63754831d5a2636801b19aeb10d92c45c2345fbb9aac81741f13ab0d768f20599cce822094d50390a1cd9b2d28b2956ba156bbcc644ff5ea4f137d0a279dff
|
@@ -13,7 +13,9 @@ module Locale
|
|
13
13
|
|
14
14
|
def create_mailer_file
|
15
15
|
assert_valid_language!
|
16
|
-
|
16
|
+
|
17
|
+
name = "#{file_name}_mailer.yml"
|
18
|
+
path = File.join("config/locales/#{language}/mailers", namespace_path, name)
|
17
19
|
|
18
20
|
template('mailer.yml', path)
|
19
21
|
end
|
@@ -10,7 +10,7 @@ module Erb
|
|
10
10
|
include Rails::Base
|
11
11
|
|
12
12
|
def generate_locale_file
|
13
|
-
invoke('locale:view', [
|
13
|
+
invoke('locale:view', [expanded_name]) if configuration.autoload_view_generator_locale
|
14
14
|
end
|
15
15
|
|
16
16
|
def generate_test_file
|
@@ -18,7 +18,13 @@ module Erb
|
|
18
18
|
|
19
19
|
return if framework.nil?
|
20
20
|
|
21
|
-
invoke("#{framework}:view", [
|
21
|
+
invoke("#{framework}:view", [expanded_name]) rescue nil
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def expanded_name
|
27
|
+
"#{name}_mailer"
|
22
28
|
end
|
23
29
|
|
24
30
|
end
|