2014-12-10 ActiveRecordのJoinsとかmergeとか rails ActiveRecordの条件指定でめっちゃ苦労したのでメモ。 ActiveRecord:scopeをmergeする(引数も取れるよ!)