remove all calls to the distributed mutex in emojis

This commit is contained in:
Régis Hanol 2015-02-13 19:34:24 +01:00
parent 324a3da723
commit 86c7071559
1 changed files with 3 additions and 5 deletions

View File

@ -85,12 +85,10 @@ class Emoji
end
def self.load_custom
DistributedMutex.new(EMOJIS_CUSTOM_LOCK).synchronize do
Dir.glob(File.join(Emoji.base_directory, "*.{png,gif}"))
.sort
.map { |emoji| Emoji.create_from_path(emoji) }
end
end
def self.base_directory
"public/#{base_url}"