Move admin action log type list generation to helper (#32178)
This commit is contained in:
		@@ -35,4 +35,11 @@ module Admin::ActionLogsHelper
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def sorted_action_log_types
 | 
			
		||||
    Admin::ActionLogFilter::ACTION_TYPE_MAP
 | 
			
		||||
      .keys
 | 
			
		||||
      .map { |key| [I18n.t("admin.action_logs.action_types.#{key}"), key] }
 | 
			
		||||
      .sort_by(&:first)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user