我有这个(简化的)担忧:
<pre><code>module Nobi::Personable
extend ActiveSupport::Concern
included do
belongs_to
<pre><code>collate_fn</code></pre>
<h3>关注</h3>
<pre><code>@foreach (var item in Model.AvaliableCategories)
{
我担心创建一个类宏,我希望该宏可用于 Rails 应用程序中的所有模型。所以我将它包含在 ApplicationRecord
我正在编写一个将添加到多个模型的 Rails 关注点。为了更加安全,我想确保包含此问题的所有模型都响
我有 <code>FooConcern</code> 和 <code>BarService</code> 如下:
<pre class="lang-rb prettyprint-override"><code>module FooConcer
假设我对控制器有一个顾虑,它的名字是身份验证。它包含一个before_action 方法authenticate_user。我应该在