Legacy Rails 3 code