Currently, the authorization check (can? method) is called repeatedly for each record in the grid, leading to performance concerns.
I'd like to optimize this by performing the authorization check just once and then applying it across all records. Any suggestions on how to best approach this.
Hey,
Currently, the authorization check (can? method) is called repeatedly for each record in the grid, leading to performance concerns.
I'd like to optimize this by performing the authorization check just once and then applying it across all records. Any suggestions on how to best approach this.
Thanks in advance!