ccocchi / rabl-rails

Rails 4.2+ templating system with JSON, XML and Plist support.
MIT License
208 stars 51 forks source link

Adds Rails 3.0 compatibility #52

Closed GermanDZ closed 10 years ago

GermanDZ commented 10 years ago

Since Rails 3.1 the internal name for "assigns" has changed. Anyway, Rails 3.0 compatibility was already broken by some dependencies for the Gem.

Since there are no tests for this kind of problem, I don't knew where to add this tests.

Please contact me if you have any concern about it.

ccocchi commented 10 years ago

Hi,

Thanks for the PR but support for the 3.0 branch has been dropped by the Rails team (http://weblog.rubyonrails.org/2013/2/24/maintenance-policy-for-ruby-on-rails/).

But I think by adding a line in your ApplicationController you can achieve the same result.