Re: [Rails] update scope statement for rails 5.1.4 from rails 3.11

7 views
Skip to first unread message

Rob Zolkos

unread,
Mar 28, 2019, 9:56:54 AM3/28/19
to rubyonra...@googlegroups.com
scope :ending, -> { limit(4) }

On Thu, Mar 28, 2019 at 4:52 AM fugee ohu <fuge...@gmail.com> 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 rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> 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 all
Reply to author
Forward
0 new messages