Update action discrepancy

I have an update action:
update :retire do
change set_attribute(:status, :retired)
end
update :retire do
change set_attribute(:status, :retired)
end
on two resources. One returns ok tuple when called through a interface, the other a bulk result. What could be the reason for this? 🤔
Solution:
are you calling them the same way? eg. with a single record?
Jump to solution
4 Replies
sevenseacat
sevenseacat•2mo ago
are you calling them the same way? how are the interfaces defined?
ken-kost
ken-kostOP•2mo ago
in resource interface define :retire and I call it. funny thing is I do need as bulk the second one 😄
Solution
sevenseacat
sevenseacat•2mo ago
are you calling them the same way? eg. with a single record?
ken-kost
ken-kostOP•2mo ago
yes I think... let me check it's that... lol. I'm doing a get before hand and I forgot get? true

Did you find this page helpful?