stephencelis/miniskirt — pull request #10 by y8 (2012-03-15 16:28:44+00:00)
Title: Fixed issue with factory attributes temple corruption and major refactoring

I've fixed issue when miniskirt may reference to original object, and instantiated object may reference to original object too. This issue caused corruption of original object, fabric template and cause very hard to catch bugs.

Simple example:

````ruby
Factory.define :user do |u|
u.setting do
{record: "value"}
end
end

alice = Factory(:user)
bob = Factory(:user)

bob.settings[:record] = "corrupted"
alice.settings # => corrupted
````

Also code refactored to be more clean, understandable and easy to support.