title: Ruby Active record model, How to return selected attributes and override one attribute
body: <p>I have model called UserUrl inside this i have enum:</p>
  <pre><code>enum category: { custom_url: &quot;custom_url&quot;, email_share: &quot;share_url&quot; }
  
  has_rich_text :email_content
  </code></pre>
  <p>When ever i have called the users_url.share_url will give activerecord relation object which is correct but for email_content i want <strong>email_content.body&amp;.to_trix_html</strong>.</p>
  <p>So i need to create a custom method in UsersUrl model called</p>
  <pre><code>def self.custom_response
    select(:id, :name)
  end
  </code></pre>
  <p>but i want email_content as a email_content.body.to_trix_html.</p>
  <p>What is the good way to do it?</p>