trying to get this compatible with Rails 2 and 4
compatibility Rails 2/4