0
has_many :read_access_mappings,
:primary_key => "username",
:foreign_key => "username",
:class_name => 'Mapping',
:conditions => {"mappings.read_access" => true}
得到了一個警告:
棄用警告:在你的User.has_many 以下選項:read_access_mappings聲明中棄用::條件。請 改爲使用範圍塊。
我該如何用新語法重寫它?