There is a method called valid_targets on any ImportAction record. It is conceivable that the value for that will change over time. Our company had an Action record with ONE target. That target record was submitted as a part of an action, but then a subsequent update to her underlying target record rendered her no longer a valid_target.
When we tried to render that ImportAction record, the view errored out, because targeted.first was nil
There is a method called
valid_targets
on anyImportAction
record. It is conceivable that the value for that will change over time. Our company had an Action record with ONE target. That target record was submitted as a part of an action, but then a subsequent update to her underlyingtarget
record rendered her no longer avalid_target
.When we tried to render that
ImportAction
record, the view errored out, becausetargeted.first
was nil