Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defined association methods on Fog::Model to dry up models. #14

Merged
merged 2 commits into from Jul 7, 2014

Conversation

plribeiro3000
Copy link
Member

I've refactored the models by creating association methods. There is no need to define an attribute and a method to get the associated model anymore. Just call has_one or has_many to create the attribute with an alias and the methods to get the association.

@coveralls
Copy link

Coverage Status

Coverage increased (+15.38%) when pulling 799aecd on model_associations into 24cdf4d on master.

plribeiro3000 added a commit that referenced this pull request Jul 7, 2014
Defined association methods on Fog::Model to dry up models.
@plribeiro3000 plribeiro3000 merged commit 4f45e3d into master Jul 7, 2014
@plribeiro3000 plribeiro3000 deleted the model_associations branch July 7, 2014 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants