Skip to content

Commit 750c6dd

Browse files
committed
Updating the strapi component generator to match the move of dynamic components into models
1 parent 75f8ee7 commit 750c6dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/generators/strapi/component_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def create_mock_file
3939
end
4040

4141
def create_data_file
42-
template("mapping_template.rb.tt", File.join(BASE_PATH, "dynamic_components", @component_type_filename, "#{@component_filename}.rb"))
42+
template("mapping_template.rb.tt", File.join(BASE_PATH, "models/dynamic_components", @component_type_filename, "#{@component_filename}.rb"))
4343
end
4444

4545
def create_data_text
46-
template("mapping_test_template.rb.tt", File.join(TEST_BASE_PATH, "dynamic_components", @component_type_filename, "#{@component_filename}_spec.rb"))
46+
template("mapping_test_template.rb.tt", File.join(TEST_BASE_PATH, "models/dynamic_components", @component_type_filename, "#{@component_filename}_spec.rb"))
4747
end
4848

4949
def run_view_component_generator

0 commit comments

Comments
 (0)