【发布时间】:2014-03-12 11:35:00
【问题描述】:
我正在运行Feed.history,但由于我在Feed 模型中使用的scope 行,它在标题中引发了上述错误:
scope :history, -> { or({:end.ne => nil}, {:end.lt => Time.current}) }
什么和为什么?!!
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-4 mongoid syntax-error mongoid4