nesquena/rabl — pull request #205 by databyte (2012-03-30 03:14:27+00:00)
Title: support the many flavors of Rails 3

* support different rendering options of Rails 3
* move and clean up specs for Rails 3
* add HTML to RABL rendering within Rails 3

ActionView::LookupContext has the following flavors of find_template (which is an alias for find)

* Rails 3.0 find has 3 parameters:
`def find(name, prefix = nil, partial = false)`
* Rails 3.1 find has 4 parameters:
`def find(name, prefixes = [], partial = false, keys = [])`
* Rails 3.2 find has 5 parameters:
`def find(name, prefixes = [], partial = false, keys = [], options = {})`

The easiest check is on parameter than, say, parsing version since
most likely 4.0 will continue to have 5 or more parameters.

Tested on: Rails '3.0.12', '3.1.4', '3.2.0', '3.2.1', '3.2.2', '3.2.3.rc2'