Convert MapsController to Rails 6 and jbuilder
This commit is contained in:
		
							parent
							
								
									b02aa85e58
								
							
						
					
					
						commit
						dbd993fd8e
					
				
					 8 changed files with 25 additions and 36 deletions
				
			
		
							
								
								
									
										6
									
								
								app/views/maps/all_npo_supporters.jbuilder
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								app/views/maps/all_npo_supporters.jbuilder
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | # frozen_string_literal: true | ||||||
|  | 
 | ||||||
|  | # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later | ||||||
|  | json.data @map_data do |md| | ||||||
|  |   json.extract! md, :name, :latitude, :longitude, :id | ||||||
|  | end | ||||||
|  | @ -1,9 +0,0 @@ | ||||||
| # frozen_string_literal: true |  | ||||||
| 
 |  | ||||||
| # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later |  | ||||||
| object false |  | ||||||
| 
 |  | ||||||
| child @map_data => :data do |  | ||||||
|   collection @map_data, object_root: false |  | ||||||
|   attributes :name, :latitude, :longitude, :id |  | ||||||
| end |  | ||||||
							
								
								
									
										6
									
								
								app/views/maps/all_npos.jbuilder
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								app/views/maps/all_npos.jbuilder
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | # frozen_string_literal: true | ||||||
|  | 
 | ||||||
|  | # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later | ||||||
|  | json.data @map_data do |md| | ||||||
|  |   json.extract! md, :name, :latitude, :longitude, :id,  :email, :phone, :website | ||||||
|  | end | ||||||
|  | @ -1,9 +0,0 @@ | ||||||
| # frozen_string_literal: true |  | ||||||
| 
 |  | ||||||
| # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later |  | ||||||
| object false |  | ||||||
| 
 |  | ||||||
| child @map_data => :data do |  | ||||||
|   collection @map_data, object_root: false |  | ||||||
|   attributes :name, :latitude, :longitude, :id, :email, :phone, :website |  | ||||||
| end |  | ||||||
							
								
								
									
										6
									
								
								app/views/maps/all_supporters.jbuilder
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								app/views/maps/all_supporters.jbuilder
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | # frozen_string_literal: true | ||||||
|  | 
 | ||||||
|  | # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later | ||||||
|  | json.data @map_data do |md| | ||||||
|  |   json.extract! md, :name, :latitude, :longitude, :id,  :email, :phone | ||||||
|  | end | ||||||
|  | @ -1,9 +0,0 @@ | ||||||
| # frozen_string_literal: true |  | ||||||
| 
 |  | ||||||
| # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later |  | ||||||
| object false |  | ||||||
| 
 |  | ||||||
| child @map_data => :data do |  | ||||||
|   collection @map_data, object_root: false |  | ||||||
|   attributes :name, :latitude, :longitude, :id, :email, :phone |  | ||||||
| end |  | ||||||
							
								
								
									
										7
									
								
								app/views/maps/specific_npo_supporters.jbuilder
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/views/maps/specific_npo_supporters.jbuilder
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | # frozen_string_literal: true | ||||||
|  | 
 | ||||||
|  | # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later | ||||||
|  | json.data @map_data do |md| | ||||||
|  |   json.extract! md, :name, :latitude, :longitude, :id,  :email, :phone,  | ||||||
|  |               :address, :city, :state_code, :total_raised | ||||||
|  | end | ||||||
|  | @ -1,9 +0,0 @@ | ||||||
| # frozen_string_literal: true |  | ||||||
| 
 |  | ||||||
| # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later |  | ||||||
| object false |  | ||||||
| 
 |  | ||||||
| child @map_data => :data do |  | ||||||
|   collection @map_data, object_root: false |  | ||||||
|   attributes :name, :latitude, :longitude, :id, :email, :phone, :address, :city, :state_code, :total_raised |  | ||||||
| end |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eric
						Eric