This website requires JavaScript.
Explore
Help
Register
Sign In
github-mirror
/
discourse
Watch
2
Star
0
Fork
0
You've already forked discourse
mirror of
https://github.com/discourse/discourse.git
synced
2024-11-27 18:43:38 +08:00
Code
Issues
Actions
1
Packages
Projects
Releases
Wiki
Activity
9c04aa593c
discourse
/
spec
/
fabricators
/
user_avatar_fabricator.rb
6 lines
70 B
Ruby
Raw
Normal View
History
Unescape
Escape
DEV: use #frozen_string_literal: true on all spec This change both speeds up specs (less strings to allocate) and helps catch cases where methods in Discourse are mutating inputs. Overall we will be migrating everything to use #frozen_string_literal: true it will take a while, but this is the first and safest move in this direction
2019-04-30 08:27:42 +08:00
# frozen_string_literal: true
PERF: Split queries when cleaning uploads. This reduces the number of scans that the db has to do in the query to fetch orphan uploads. Futheremore, we were not batching our records which bloats memory.
2016-07-01 15:22:30 +08:00
Fabricator
(
:user_avatar
)
do
user
end
Reference in New Issue
Copy Permalink