Are there any ways to use virtual attributes as conditions in Rails' finders?
For example:
Friend.find(:first, conditions: { full_name: 'Chandler Bing' })
Friend.where(login: 'chandler_bing@friends.tv', password: 'secret')
# `full_name' and `password' are virtual attributes
Thanks.