Topic: Best place for a convert method in Rails app

I am using Rails 3.0.3, I was wondering where is the best place in Rails app for a method which converts entry from a db (integer) to color string which I want to use in my view

I have an object with danger column (integer) where {1 => '#08EB00',2=>'#F6FF00',3=>'#ED6D05',4=>'#ED0505'}

Can I put it in my model or somewhere else?