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

Fix for lighthouse #6741 #358

Merged
merged 1 commit into from May 5, 2011

Conversation

baroquebobcat
Copy link
Contributor

  • adds tests for find_or_create_by and find_or_initialize_by on has_many associations
  • changes the behavior of ActiveRecord::Associations::CollectionProxy#method_missing to differ to
    ActiveRecord::FinderMethods#find_or_instantiator_by_attributes for arg processing and saving so
    find_or_create_by's api on associations will be consistent w/ the api for model classes.

- adds tests for find_or_create_by and find_or_initialize_by on has_many associations
- changes the behavior of ActiveRecord::Associations::CollectionProxy#method_missing to differ to
  ActiveRecord::FinderMethods#find_or_instantiator_by_attributes for arg processing and saving so
  find_or_create_by's api on associations will be consistent w/ the api for model classes.
tenderlove added a commit that referenced this pull request May 5, 2011
@tenderlove tenderlove merged commit f098c80 into rails:master May 5, 2011
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