nesquena/rabl — pull request #368 by natlownes (2012-11-26 21:53:18+00:00)
Title: rails 2.3.2 compatibility, fixes "undefined method `element`"

adds rails 2.3.2 compatibility, fixes error seen here: https://gist.github.com/4150783

in rails 2.3.2 the ActiveSupport::ModelName object doesn't yet set the
'element' accessor used in Rabl::Helpers#data_name method

if the object returned by the model_name method on the data object's
class doesn't respond_to :element, instead return what the element
method call would initialize that attribute as in 2.3.8