class Song < ActiveRecord::Base
# Uses an integer of seconds to hold the length of the song
write_attribute("length", minutes * 60)
read_attribute("length") / 60
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...