stefanpenner-my_generator 0.1.2 → 0.1.3
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.
data/VERSION.yml
CHANGED
|
@@ -29,7 +29,7 @@ class MyScaffoldGeneratorConfig
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def config_file
|
|
32
|
-
File.join(find_home, '.
|
|
32
|
+
File.join(find_home, '.my_generator')
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
##
|
|
@@ -74,7 +74,7 @@ class MyScaffoldGenerator < Rails::Generator::NamedBase
|
|
|
74
74
|
def initialize(runtime_args, runtime_options = {})
|
|
75
75
|
super
|
|
76
76
|
|
|
77
|
-
@configuration =
|
|
77
|
+
@configuration = MyScaffoldGeneratorConfig.new
|
|
78
78
|
|
|
79
79
|
@controller_name = @name.pluralize
|
|
80
80
|
|
|
@@ -128,7 +128,7 @@ class MyScaffoldGenerator < Rails::Generator::NamedBase
|
|
|
128
128
|
|
|
129
129
|
m.route_resources controller_file_name
|
|
130
130
|
|
|
131
|
-
m.dependency '
|
|
131
|
+
m.dependency 'my_model', [name] + @args, :collision => :skip
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|