def create_module_file
return if regular_class_path.empty?
template "module.rb", File.join("app/models", "#{class_path.join('/')}.rb") if behavior == :invoke
end
Enter codef create_module_file
return if regular_class_path.empty?
template "module.rb", File.join("app/models", class_path, "#{class_path.join('/')}.rb") if behavior == :invoke
end
de here...
rails g model admin/dashboard
rails g model user/dashboard user/profile
This is only a problem when you're dealing with large monoliths, and because that is a result of poor app design, this suggestion is probably not warranted after all.