duration_to_sec("3m") => 180
Perhaps something similar to https://gist.github.com/tim-evans/d0ba1e8f05a55b76c49c but wrapped as a nice gem, or even better an internal function to do this.
Edit: I can't use ActiveRecord; also, not looking for an implementation to drop in. I already wrote one. Just looking for a gem that might have already implemented this functionality. Thanks!