2015-03-12から1日間の記事一覧
Scope that finds nothing or ends with .first does another lookup · Issue #19249 · rails/rails 結果が見つからなくてfirstメソッドで終わるとscopeが別の結果になる。 本文 Rails4.2とRuby2.2だよ。 class Car < ActiveRecord::Base scope :where_color…
Scope that finds nothing or ends with .first does another lookup · Issue #19249 · rails/rails 結果が見つからなくてfirstメソッドで終わるとscopeが別の結果になる。 本文 Rails4.2とRuby2.2だよ。 class Car < ActiveRecord::Base scope :where_color…