rails/activeresource — pull request #36 by leandronsp (2012-09-01 06:50:08+00:00)
Title: Problem with "classify" when using ActiveSupport <= 3.2.x

Hello everyone!11

I got an Uninitialized Constant Error when trying to build this association:

has_one :business, class_name: "business"

...because "business".classify returns "Busines". So by calling constantize, ta daaa!

I notice that the version 4.0.0.beta from ActiveSupport fix this, but if I want to use ARes + AS(3.2.8) I need to do a monkey patch.

This request also fix a broken test, about include_root_in_json.

Thanks for advance!