Fixed association= method work with relations.
Fixed association= method work with relations.

write_attribute(attribute, model) does not work when the model is an ActiveRecord model and not an id.  Updated to use super instead.  Allows something like this: User.create(:account => Account.first)

ErwinM/acts_as_tenant,ErwinM/acts_as_tenant,praktijkindex/acts_as_tenant,goodnest/acts_as_tenant,ErwinM/acts_as_tenant