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

Update some references to finder options [ci skip] #38559

Merged
merged 1 commit into from Feb 25, 2020

Conversation

eugeneius
Copy link
Member

Passing conditions to find was deprecated in Rails 4.0.

Passing conditions to `find` was deprecated in Rails 4.0.
# Raised when number of bind variables in statement given to +:condition+ key
# (for example, when using {ActiveRecord::Base.find}[rdoc-ref:FinderMethods#find] method)
# does not match number of expected values supplied.
# Raised when the number of placeholders in an SQL fragment passed to
Copy link
Contributor

Choose a reason for hiding this comment

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

Think it’s a SQL fragment

Copy link
Member Author

Choose a reason for hiding this comment

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

It depends whether you pronounce SQL as an initialism or as "sequel", which makes it ambiguous and somewhat controversial. 😄

The precedent in the rest of the codebase is to use "an": https://github.com/rails/rails/search?q=%22an+SQL%22

@eugeneius eugeneius merged commit f0774fc into rails:master Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants