Browse Source

Randomize emoji filename (#10090)

pull/4/head
Hinaloe 5 years ago
committed by Eugen Rochko
parent
commit
d7ad42a888
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/controllers/admin/custom_emojis_controller.rb

+ 3
- 0
app/controllers/admin/custom_emojis_controller.rb View File

@ -5,6 +5,9 @@ module Admin
before_action :set_custom_emoji, except: [:index, :new, :create]
before_action :set_filter_params
include ObfuscateFilename
obfuscate_filename [:custom_emoji, :image]
def index
authorize :custom_emoji, :index?
@custom_emojis = filtered_custom_emojis.eager_load(:local_counterpart).page(params[:page])

Loading…
Cancel
Save