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

Kill some ActiveRecord deprecation warnings #163

Merged
merged 1 commit into from Sep 29, 2013

Conversation

makimoto
Copy link
Member

いくつか Rails 4 (ActiveRecord 4) にアップデートした関連で deprecation warning が出ていたのでつぶしました。

  • use .all instead of .scope
  • use .joins for .includes explicitly
  • do not use options in .find_by_foo

has_subscriptions.
joins(:crawl_status).
merge(CrawlStatus.status_ok).
merge(CrawlStatus.expired(Settings.crawl_interval.minutes)).
Copy link
Member

Choose a reason for hiding this comment

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

末尾の . が惜しい

Copy link
Member Author

Choose a reason for hiding this comment

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

ops. コミット直前に行を入れ替えた所為で事故ってました……
4d2037f

* use `.all` instead of `.scope`
* use `.joins` for `.includes` explicitly
* do not use options in `.find_by_foo`
makimoto added a commit that referenced this pull request Sep 29, 2013
Kill some ActiveRecord deprecation warnings
@makimoto makimoto merged commit dd58230 into fastladder:master Sep 29, 2013
@makimoto makimoto deleted the kill-deperecation-warnings branch September 29, 2013 23:14
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