rails/rails — pull request #3295 by zhengjia (2011-10-11 16:30:10+00:00)
Title: Fix multiple includes with options

We can specify an array of included associations like `user.as_json(:include => [:asso1, :asso2])`
However if we specify options for an association, then it doesn't work

`user.as_json(:include => [{:asso1 => {:only => :field1}} , :asso2]) ` will throw

`TypeError: {:asso1 => {:only => :field1}} is not a symbol`

This fixes the above issue.