新手问题 「已解决」关于 ruby-china 源码使用 mongoid 的问题

loyalpartner · February 25, 2015 · Last by loyalpartner replied at February 25, 2015 · 1886 hits

在 ruby-china 源码里面发现这段代码

# scopes
scope :last_actived, -> {  desc(:last_active_mark) }
# 推荐的话题
scope :suggest, -> { where(:suggested_at.ne => nil).desc(:suggested_at) }
scope :fields_for_list, -> { without(:body,:body_html) }

其中 without() 的方法是在哪定义的呢? 我翻遍了 mongid 的文档都没找到 - -!

You need to Sign in before reply, if you don't have an account, please Sign up first.