Allows metadata to override the type of Rails spec

[Fixes #801]