update scope statement for rails 5.1.4 from rails 3.11

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

update scope statement for rails 5.1.4 from rails 3.11

fugee ohu
How would I correct this scope statement from my model for rails 5.1.4
scope :ending, :limit => 4

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/91dc6590-2ad6-4b75-836e-c4a4e69701ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: update scope statement for rails 5.1.4 from rails 3.11

Rob Zolkos-2
scope :ending, -> { limit(4) }

On Thu, Mar 28, 2019 at 4:52 AM fugee ohu <[hidden email]> wrote:

>
> How would I correct this scope statement from my model for rails 5.1.4
> scope :ending, :limit => 4
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/91dc6590-2ad6-4b75-836e-c4a4e69701ea%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPz%2BWeTm3PXWMmG9QSGT6xbsBV-uatc2%2BasJx5qk2T-3L6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.