comfy-admin-constructor 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -42,12 +42,12 @@ class CmsAdminGenerator < Rails::Generators::Base
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def create_form
|
45
|
-
template "views/_form#{template_file_type}", "app/views/#{admin_prefix}/#{plural_name}/_form#{template_file_type}"
|
45
|
+
template "views/_form#{template_file_type}", "app/views/#{admin_prefix.underscore}/#{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}/#{plural_name}/#{action}#{template_file_type}"
|
50
|
+
template "views/#{action}#{template_file_type}", "app/views/#{admin_prefix.underscore}/#{plural_name}/#{action}#{template_file_type}"
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|