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

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -