You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We accept {:model_at} as a first level kw arg, currently.
132
+
itdo
133
+
create=Class.new(Trailblazer::Operation)do
134
+
step:model
135
+
136
+
defmodel(ctx,params:, **)
137
+
ctx[:song]=Record.new(**params)
138
+
end
139
+
end
140
+
141
+
assert_passcreate,{params: {title: "Somewhere Far Beyond"}},title: "Somewhere Far Beyond",model_at: :song
142
+
# assert_pass Create, {params: {title: "Somewhere Far Beyond"}}, {invoke_method: :wtf?, model_at: }, {...} # DISCUSS: this would be an alternative syntax.
0 commit comments