Project

General

Profile

« Previous | Next » 

Revision 13250

Added by Toshi MARUYAMA almost 11 years ago

replace Relation#all

On Rails4.0:

DEPRECATION WARNING: Relation#all is deprecated.
If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`).
If you want to get an array of records from a relation,
you can call #to_a (e.g. `Post.where(published: true).to_a`).

  • added
  • modified
  • copied
  • renamed
  • deleted