default scope in older rails versions -


All in the afternoon.

I am working on a project written on Rail Project

In newer versions, we can use an unusual method to create a default scope such as

  default_scope: order = & gt; 'Title ASC'  

How can the same / similar effect be achieved without upgrading the railway version?

You can consider default_scope functionality in your project back-porting.

I think the default_scope has been added.

You only need to make changes. The other parts shown in the documentation and tests are those that you should consider adding but not necessarily.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -