0
나는 Feed.history
를 실행 해요하지만 그것은 Feed
모델 때문에 내 scope
라인의 제목에 위의 오류를 올렸다 :구문 오류, 예기치 못한 keyword_or 범위
scope :history, -> { or({:end.ne => nil}, {:end.lt => Time.current}) }
무엇을, 왜!
나는 Feed.history
를 실행 해요하지만 그것은 Feed
모델 때문에 내 scope
라인의 제목에 위의 오류를 올렸다 :구문 오류, 예기치 못한 keyword_or 범위
scope :history, -> { or({:end.ne => nil}, {:end.lt => Time.current}) }
무엇을, 왜!
이
scope :history, where('$or' => [{:end.ne => nil}, {:end.lt => Time.current}])
시도