My Detail model have fields like:
email1,email2,email3
How do I get all the values, of a particular record, of these fields at once.
Something like:
detail = Detail.find(id)
output = detail.only(:email1,:email2,email3)
=> ["email1","email2","email3"] #desired output.
How can I do this?