active_generator 2.0.3 → 2.0.4
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 +25 -20
- 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: 23a631e7a338ab863dc38c335c6dec2d538e4c53
|
4
|
+
data.tar.gz: d700e66e0782ae761bf022b2da6b2a2a393a5f4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0dfa67411bdbed0a909178f056e05cb31b1ddd56d7f452513326a9a40b44ddfeef723552d9d0524ed4c6c4aca97e0a27dd59719ce50cd88e31701cd7b3d2c74
|
7
|
+
data.tar.gz: 252dea70662d3233c692ff4a3994f64b85221305b53f0ce53518211d158e99ea3dfda85cb853d1f5024acd539d2c6864d3c4581c1afd52b7c80aef50d2acd39c
|
data/lib/active_generator.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
require "rails/generators"
|
2
|
+
require 'rails/generators/rails/controller/controller_generator'
|
3
|
+
require 'rails/generators/rails/helper/helper_generator'
|
4
|
+
require 'rails/generators/rails/model/model_generator'
|
5
|
+
|
6
|
+
|
2
7
|
require "active_object"
|
3
8
|
require "active_generator/version"
|
4
9
|
|
@@ -17,26 +22,26 @@ Rails::Generators::ControllerGenerator.class_eval do
|
|
17
22
|
end
|
18
23
|
end
|
19
24
|
|
20
|
-
Rails::Generators::HelperGenerator.class_eval do
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
25
|
+
# Rails::Generators::HelperGenerator.class_eval do
|
26
|
+
# def copy_locale_file
|
27
|
+
# invoke("locale:helper", [name])
|
28
|
+
# end
|
29
|
+
# end
|
25
30
|
|
26
|
-
Rails::Generators::JobGenerator.class_eval do
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
end
|
31
|
+
# Rails::Generators::JobGenerator.class_eval do
|
32
|
+
# def copy_locale_file
|
33
|
+
# invoke("locale:job", [name])
|
34
|
+
# end
|
35
|
+
# end
|
31
36
|
|
32
|
-
Rails::Generators::MailerGenerator.class_eval do
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
end
|
37
|
+
# Rails::Generators::MailerGenerator.class_eval do
|
38
|
+
# def copy_locale_file
|
39
|
+
# invoke("locale:mailer", [name])
|
40
|
+
# end
|
41
|
+
# end
|
37
42
|
|
38
|
-
Rails::Generators::
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
end
|
43
|
+
# Rails::Generators::ModelGenerator.class_eval do
|
44
|
+
# def copy_locale_file
|
45
|
+
# invoke("locale:model", [name])
|
46
|
+
# end
|
47
|
+
# end
|