jgraichen/acfs — pull request #18 by nicolas-fricke (2014-02-06 11:43:27+00:00)
Title: [RTI] Fix: rescue invalid type field errors

When a `type` field is set in an Acfs-Resource, Acfs mimics Rails' STI by trying to instantiate a resource with the name of `type.camelize.constantize`. This fails, if the type string does not represent a valid subclass of the resource.

For better traceability, a `ResourceTypeError` indicating the type mismatch gets raised.