active_generator 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_generator.rb +88 -88
- data/lib/active_generator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a369b03a1cbb74a1295da71a24ba55d790db951
|
4
|
+
data.tar.gz: 86d23d66b1a9f4433ca02e04379d0253f5ac81cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35c253442d0a862987d1728c80111925340f5d4311f024d809da628629cfe88e74c909d9349f538331a001bcac6b5f345e5f13f0caa8b11e1087b475ebacd12d
|
7
|
+
data.tar.gz: 10b4b818c009cf5be2f2ac0db070df0f45b232c89ad70364c187b904036dc9bdec4675d335fa4b7d6e5c119360fe2aea8d19f278c34aff757ac49b8412b11c48
|
data/lib/active_generator.rb
CHANGED
@@ -32,7 +32,7 @@ module ActiveGenerator
|
|
32
32
|
|
33
33
|
end
|
34
34
|
|
35
|
-
if ActiveGenerator.configuration.autoload_controller_generator_locale
|
35
|
+
#if ActiveGenerator.configuration.autoload_controller_generator_locale
|
36
36
|
begin
|
37
37
|
require "rails/generators/rails/controller/controller_generator"
|
38
38
|
|
@@ -44,9 +44,9 @@ if ActiveGenerator.configuration.autoload_controller_generator_locale
|
|
44
44
|
rescue LoadError => e
|
45
45
|
# Skip over missing files
|
46
46
|
end
|
47
|
-
end
|
47
|
+
#end
|
48
48
|
|
49
|
-
if ActiveGenerator.configuration.autoload_helper_generator_locale
|
49
|
+
#if ActiveGenerator.configuration.autoload_helper_generator_locale
|
50
50
|
begin
|
51
51
|
require "rails/generators/rails/helper/helper_generator"
|
52
52
|
|
@@ -58,88 +58,88 @@ if ActiveGenerator.configuration.autoload_helper_generator_locale
|
|
58
58
|
rescue LoadError => e
|
59
59
|
# Skip over missing files
|
60
60
|
end
|
61
|
-
end
|
62
|
-
|
63
|
-
if ActiveGenerator.configuration.autoload_jbuilder_generator_locale
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
end
|
76
|
-
|
77
|
-
if ActiveGenerator.configuration.autoload_job_generator_locale
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
end
|
90
|
-
|
91
|
-
if ActiveGenerator.configuration.autoload_mailer_generator_locale
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
end
|
104
|
-
|
105
|
-
if ActiveGenerator.configuration.autoload_model_generator_locale
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
end
|
118
|
-
|
119
|
-
if ActiveGenerator.configuration.autoload_responders_controller_generator_locale
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
end
|
132
|
-
|
133
|
-
if ActiveGenerator.configuration.autoload_task_generator_locale
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
end
|
61
|
+
#end
|
62
|
+
|
63
|
+
# if ActiveGenerator.configuration.autoload_jbuilder_generator_locale
|
64
|
+
# begin
|
65
|
+
# require "rails/generators/rails/jbuilder/jbuilder_generator"
|
66
|
+
|
67
|
+
# Rails::Generators::JbuilderGenerator.class_eval do
|
68
|
+
# def copy_locale_file
|
69
|
+
# invoke("locale:jbuilder", [name])
|
70
|
+
# end
|
71
|
+
# end
|
72
|
+
# rescue LoadError => e
|
73
|
+
# # Skip over missing files
|
74
|
+
# end
|
75
|
+
# end
|
76
|
+
|
77
|
+
# if ActiveGenerator.configuration.autoload_job_generator_locale
|
78
|
+
# begin
|
79
|
+
# require "rails/generators/rails/job/job_generator"
|
80
|
+
|
81
|
+
# Rails::Generators::JobGenerator.class_eval do
|
82
|
+
# def copy_locale_file
|
83
|
+
# invoke("locale:job", [name])
|
84
|
+
# end
|
85
|
+
# end
|
86
|
+
# rescue LoadError => e
|
87
|
+
# # Skip over missing files
|
88
|
+
# end
|
89
|
+
# end
|
90
|
+
|
91
|
+
# if ActiveGenerator.configuration.autoload_mailer_generator_locale
|
92
|
+
# begin
|
93
|
+
# require "rails/generators/rails/mailer/mailer_generator"
|
94
|
+
|
95
|
+
# Rails::Generators::MailerGenerator.class_eval do
|
96
|
+
# def copy_locale_file
|
97
|
+
# invoke("locale:mailer", [name])
|
98
|
+
# end
|
99
|
+
# end
|
100
|
+
# rescue LoadError => e
|
101
|
+
# # Skip over missing files
|
102
|
+
# end
|
103
|
+
# end
|
104
|
+
|
105
|
+
# if ActiveGenerator.configuration.autoload_model_generator_locale
|
106
|
+
# begin
|
107
|
+
# require "rails/generators/rails/model/model_generator"
|
108
|
+
|
109
|
+
# Rails::Generators::ModelGenerator.class_eval do
|
110
|
+
# def copy_locale_file
|
111
|
+
# invoke("locale:model", [name])
|
112
|
+
# end
|
113
|
+
# end
|
114
|
+
# rescue LoadError => e
|
115
|
+
# # Skip over missing files
|
116
|
+
# end
|
117
|
+
# end
|
118
|
+
|
119
|
+
# if ActiveGenerator.configuration.autoload_responders_controller_generator_locale
|
120
|
+
# begin
|
121
|
+
# require "rails/generators/rails/responders_controller/responders_controller_generator"
|
122
|
+
|
123
|
+
# Rails::Generators::RespondersControllerGenerator.class_eval do
|
124
|
+
# def copy_locale_file
|
125
|
+
# invoke("locale:responders_controller", [name])
|
126
|
+
# end
|
127
|
+
# end
|
128
|
+
# rescue LoadError => e
|
129
|
+
# # Skip over missing files
|
130
|
+
# end
|
131
|
+
# end
|
132
|
+
|
133
|
+
# if ActiveGenerator.configuration.autoload_task_generator_locale
|
134
|
+
# begin
|
135
|
+
# require "rails/generators/rails/task/task_generator"
|
136
|
+
|
137
|
+
# Rails::Generators::TaskGenerator.class_eval do
|
138
|
+
# def copy_locale_file
|
139
|
+
# invoke("locale:task", [name])
|
140
|
+
# end
|
141
|
+
# end
|
142
|
+
# rescue LoadError => e
|
143
|
+
# # Skip over missing files
|
144
|
+
# end
|
145
|
+
# end
|