File tree 1 file changed +4
-4
lines changed
app/services/cms/providers/strapi/factories
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,20 @@ module EmailContentFactory
7
7
def self . generate_component ( component_name , strapi_data )
8
8
case component_name
9
9
when "text"
10
- EmailComponents ::Text . new (
10
+ Models :: EmailComponents ::Text . new (
11
11
blocks : strapi_data [ :textContent ]
12
12
)
13
13
when "cta"
14
- EmailComponents ::Cta . new (
14
+ Models :: EmailComponents ::Cta . new (
15
15
text : strapi_data [ :text ] ,
16
16
link : strapi_data [ :link ]
17
17
)
18
18
when "course-list"
19
- EmailComponents ::CourseList . new (
19
+ Models :: EmailComponents ::CourseList . new (
20
20
section_title : strapi_data [ :sectionTitle ] ,
21
21
remove_on_match : strapi_data [ :removeOnMatch ] ,
22
22
courses : strapi_data [ :courses ] . map do |course |
23
- EmailComponents ::Course . new (
23
+ Models :: EmailComponents ::Course . new (
24
24
activity_code : course [ :activityCode ] ,
25
25
substitute : course [ :substitute ] ,
26
26
display_name : course [ :displayName ]
You can’t perform that action at this time.
0 commit comments