Mongoid extension .ne

First time using the Mongoid on Rails project. What does the .ne extension mean in the scope method like this:

scope :subscribed, -> { where( :unsubscribed.ne => true ) } 
+6
source share
1 answer

This is a select operation for "not equal . "

+7
source

Source: https://habr.com/ru/post/924136/


All Articles