• Added: - promotions to redux - selector for setting promotions if not PRO • Updated: - StatusList, SidebarPanelGroup to use promotions from redux
		
			
				
	
	
		
			11 lines
		
	
	
		
			295 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			295 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# frozen_string_literal: true
 | 
						|
 | 
						|
class Api::V1::PromotionsController < EmptyController
 | 
						|
 | 
						|
  def index
 | 
						|
    data = ActiveModelSerializers::SerializableResource.new(Promotion.active, each_serializer: REST::PromotionSerializer)
 | 
						|
    render json: data.to_json, content_type: 'application/json'
 | 
						|
  end
 | 
						|
 | 
						|
end
 |