スコープの簡略化
This commit is contained in:
		@@ -49,8 +49,7 @@ class Ejaculation extends Model
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    public function scopeOnlyWebCheckin(Builder $query)
 | 
					    public function scopeOnlyWebCheckin(Builder $query)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return $query->where('ejaculations.source', null)
 | 
					        return $query->where('ejaculations.source', Ejaculation::SOURCE_WEB);
 | 
				
			||||||
            ->orWhere('ejaculations.source', '<>', Ejaculation::SOURCE_CSV);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function scopeWithLikes(Builder $query)
 | 
					    public function scopeWithLikes(Builder $query)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user