-light:#6A737D;--shiki-dark:#6A737D;"># see if it returns the expected behavior for that action</span></span></code></pre></div><p>Note: this assumes that the model instance is being loaded properly. If you are only using <code>authorize_resource</code> it will not have an instance to work with so it will use the class.</p><div class="language-ruby vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ruby</span><pre class="shiki shiki-themes github-light github-dark vp-code"