@@ -49,28 +49,8 @@ def fields
49
49
50
50
# this field demonstrated how one can use the array field to display an arbitrary array of objects as a "has_many field"
51
51
field :attendees , as : :array do
52
- [
53
- { id : 1 , name : "John Doe" , role : "Software Developer" , organization : "TechCorp" } ,
54
- { id : 2 , name : "Jane Smith" , role : "Data Scientist" , organization : "DataPros" } ,
55
- { id : 3 , name : "Emily Davis" , role : "Product Manager" , organization : "Startup Inc." } ,
56
- { id : 4 , name : "Kevin Roberts" , role : "CTO" , organization : "FutureTech" } ,
57
- { id : 5 , name : "Sarah Johnson" , role : "UI/UX Designer" , organization : "DesignWorks" } ,
58
- { id : 6 , name : "Michael Lee" , role : "Backend Engineer" , organization : "CodeBase" } ,
59
- { id : 7 , name : "Olivia Brown" , role : "Project Coordinator" , organization : "BuildIt" } ,
60
- { id : 8 , name : "Ethan Williams" , role : "AI Specialist" , organization : "InnoBots" } ,
61
- { id : 9 , name : "Sophia Martinez" , role : "Marketing Strategist" , organization : "Brandify" } ,
62
- { id : 10 , name : "Jacob Wilson" , role : "DevOps Engineer" , organization : "OpsWorld" } ,
63
- { id : 11 , name : "Ava Taylor" , role : "Business Analyst" , organization : "AnalyzeNow" } ,
64
- { id : 12 , name : "William Hernandez" , role : "Full Stack Developer" , organization : "Webify" } ,
65
- { id : 13 , name : "Mia Moore" , role : "HR Manager" , organization : "PeopleFirst" } ,
66
- { id : 14 , name : "James Anderson" , role : "Blockchain Developer" , organization : "ChainWorks" } ,
67
- { id : 15 , name : "Charlotte White" , role : "Product Designer" , organization : "Cre8tive" } ,
68
- { id : 16 , name : "Benjamin Green" , role : "Cybersecurity Analyst" , organization : "SecureNet" } ,
69
- { id : 17 , name : "Amelia Clark" , role : "Data Engineer" , organization : "BigData Solutions" } ,
70
- { id : 18 , name : "Lucas Carter" , role : "Scrum Master" , organization : "AgileHub" } ,
71
- { id : 19 , name : "Ella Thompson" , role : "Software Architect" , organization : "CodeVision" } ,
72
- { id : 20 , name : "Alexander Scott" , role : "Solutions Consultant" , organization : "Innovate Consulting" }
73
- ]
52
+ # This is testing that array block can access the record.something
53
+ record . attendees_from_block
74
54
end
75
55
end
76
56
end
0 commit comments