Development (#264)
* Added optional text attribute to location link * Set location title to link text on the schedule * Fixed typo in GeocoderHelper
This commit is contained in:
		
							parent
							
								
									5f2add7f64
								
							
						
					
					
						commit
						fd65bfd8f7
					
				@ -86,9 +86,9 @@ module GeocoderHelper
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  def location_link(location, text = nil)
 | 
					  def location_link(location, text = nil)
 | 
				
			||||||
    return '' unless location.present?
 | 
					    return '' unless location.present?
 | 
				
			||||||
    address = if text is_a?(Symbol)
 | 
					    address = if text.is_a?(Symbol)
 | 
				
			||||||
                location.send(text)
 | 
					                location.send(text)
 | 
				
			||||||
              elsif location.is_a?(String)
 | 
					              elsif text.is_a?(String)
 | 
				
			||||||
                text
 | 
					                text
 | 
				
			||||||
              elsif location.is_a?(Location)
 | 
					              elsif location.is_a?(Location)
 | 
				
			||||||
                location.street
 | 
					                location.street
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user