【问题标题】:Mongoid extension .neMongoid 扩展名.ne
【发布时间】:2012-08-30 01:59:06
【问题描述】:

第一次在 Rails 项目中使用 Mongoid。 .ne 扩展名在这样的作用域方法中代表什么:

  scope :subscribed, -> {
       where( :unsubscribed.ne => true )
  }

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 mongoid


    【解决方案1】:

    这是"not equal"的选择操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-31
      • 2012-12-24
      • 1970-01-01
      • 2017-04-23
      相关资源
      最近更新 更多