an class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># in ApplicationController</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">rescue_from </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">CanCan</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">AccessDenied</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> do</span><span style="--shi