mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-11-04 01:15:36 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			313 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			313 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
json.task_lists [@task_list] do |tl|
 | 
						|
  json.array! tl
 | 
						|
  json.links do
 | 
						|
    json.bike do
 | 
						|
      json.href api_bike_path(tl.item)
 | 
						|
      json.id tl.item_id
 | 
						|
    end
 | 
						|
    json.tasks tl.tasks do |task|
 | 
						|
      json.id task.id
 | 
						|
      json.done task.done
 | 
						|
      json.notes task.notes
 | 
						|
      json.task task.task
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |