nesquena/rabl — pull request #297 by siong1987 (2012-07-27 03:54:37+00:00)
Title: locals should take extra keys more than just object.

It seems like Rabl::Renderer only supports `:object` for the locals. And, I don't understand why `:locals` even exists if it only supports `:object` which we can pass it as the first parameter.

With this change, other keys in `locals` can be used as instance variables in template. And, `:object` that is passed in as the first parameter will take precedence over the `:object` in `:locals`.

Last question, should we even support `:object` in `:locals`? It seems like it serves no purpose other than making the code uglier.