Make latest rubyamf code work with Rails 3.2

To make latest rubyamf code from warhammerkid work with Rails 3.2