仮想アトリビュートをRailsのファインダの条件として使用する方法はありますか?例えばRuby on Rails |条件内の仮想属性
:
Friend.find(:first, conditions: { full_name: 'Chandler Bing' })
Friend.where(login: '[email protected]', password: 'secret')
# `full_name' and `password' are virtual attributes
感謝。