fixed embbeds one
preventing for when relation is nil or doesnt respond to metadata
Don't make embeds_one and empty array in the full_attributes when blank.
Add tests for embeds_one functionality.
Merge pull request #2 from GUI/embeds_one

Fix embeds_one functionality