Includes the same changes as #546. Thanks to @mikepack and @mccraigmccraig for fixing it initially. I just pulled their changes and ensured that it was automerging. Making it easier to be pulled into master.
initialise attributes after a resource is created by an InheritedReso…
Add specs for resource attributes.
Remove inconsistent line breaks.
Refactor out attribute assignment
Fix pull request 640. For some reason github didn't allow a clean mer…
…ge althought there weren't any conflicts. Fix it so that it's easier to just merge via the UI.