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

Deprecate calling .find with hash #581

Merged
merged 1 commit into from
Nov 11, 2014
Merged

Deprecate calling .find with hash #581

merged 1 commit into from
Nov 11, 2014

Conversation

awead
Copy link
Contributor

@awead awead commented Nov 11, 2014

Calling ActiveFedora::Base.find(id: “foo”) or any other usage with a
hash is deprecated. Use .where instead. Fixes #561

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.11%) when pulling ca9496e on deprecations into 8e31a71 on fedora-4.

@@ -1,5 +1,7 @@
module ActiveFedora
module FinderMethods
extend Deprecation
self.deprecation_horizon = "active-fedora 10.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not necessary unless you're using deprecation_deprecate

@jcoyne
Copy link
Member

jcoyne commented Nov 11, 2014

Looks good, just 1 change necessary.

@awead
Copy link
Contributor Author

awead commented Nov 11, 2014

@jcoyne thanks, it's been updated.

Calling ActiveFedora::Base.find(id: “foo”) or any other usage with a
hash is deprecated. Use .where instead.
jcoyne added a commit that referenced this pull request Nov 11, 2014
Deprecate calling .find with hash
@jcoyne jcoyne merged commit ec85cac into fedora-4 Nov 11, 2014
@jcoyne jcoyne deleted the deprecations branch November 11, 2014 19:15
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.

3 participants