Fixes a problem with the Attributes mixin where an attribute set with a falsy value such as false or nil, the model would not respond to the attribute reader.
We raise a ConfigurationError when posting or getting a resource fails with a redirect. This usually means that SSL should be turned on or off in the settings. It's up to the applications to provide further support for this. Thanks to Ilya Sabanin for the idea and his code.
The JSON gem and ActiveRecord accept different arguments on the to_json method. This breaks when loading both and calling JSON.dump or JSON.generate but not the calling object.to_json for some reason.