Skip to content

Commit 19d5bb0

Browse files
committed
make more succinct
1 parent fe7627f commit 19d5bb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/project.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module Types
3434

3535
scope :internal_projects, -> { where(user_id: nil) }
3636
scope :only_scratch, lambda { |only_scratch|
37-
only_scratch ? Project.all.where(project_type: Project::Types::SCRATCH) : self
37+
only_scratch ? Project.where(project_type: Project::Types::SCRATCH) : self
3838
}
3939

4040
has_paper_trail(

0 commit comments

Comments
 (0)