comfy-admin-constructor 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/comfy-admin-constructor/version.rb +1 -1
- data/lib/generators/cms_admin/cms_admin_generator.rb +3 -3
- metadata +1 -2
- data/.DS_Store +0 -0
data/.gitignore
CHANGED
@@ -38,16 +38,16 @@ class CmsAdminGenerator < Rails::Generators::Base
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def create_controller
|
41
|
-
template 'controller.rb', "app/controllers/#{admin_prefix
|
41
|
+
template 'controller.rb', "app/controllers/#{admin_prefix}/#{plural_name}_controller.rb"
|
42
42
|
end
|
43
43
|
|
44
44
|
def create_form
|
45
|
-
template "views/_form#{template_file_type}", "app/views/#{admin_prefix
|
45
|
+
template "views/_form#{template_file_type}", "app/views/#{admin_prefix}/#{plural_name}/_form#{template_file_type}"
|
46
46
|
end
|
47
47
|
|
48
48
|
def create_views
|
49
49
|
%w[edit index new].each do |action|
|
50
|
-
template "views/#{action}#{template_file_type}", "app/views/#{admin_prefix
|
50
|
+
template "views/#{action}#{template_file_type}", "app/views/#{admin_prefix}/#{plural_name}/#{action}#{template_file_type}"
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfy-admin-constructor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -19,7 +19,6 @@ executables: []
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
-
- .DS_Store
|
23
22
|
- .gitignore
|
24
23
|
- Gemfile
|
25
24
|
- LICENSE
|
data/.DS_Store
DELETED
Binary file
|