Add trend management to admin API (#24257)
This commit is contained in:
		
							parent
							
								
									1153531e92
								
							
						
					
					
						commit
						4db8230194
					
				
					 13 changed files with 419 additions and 12 deletions
				
			
		
							
								
								
									
										9
									
								
								app/serializers/rest/admin/trends/status_serializer.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/serializers/rest/admin/trends/status_serializer.rb
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| # frozen_string_literal: true | ||||
| 
 | ||||
| class REST::Admin::Trends::StatusSerializer < REST::StatusSerializer | ||||
|   attributes :requires_review | ||||
| 
 | ||||
|   def requires_review | ||||
|     object.requires_review? | ||||
|   end | ||||
| end | ||||
		Reference in a new issue