before. In the API, attachments now can be either image, video or gifv. Gifv is to be treated like images in terms of behaviour, but are videos by file type.
		
			
				
	
	
		
			6 lines
		
	
	
		
			216 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			216 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| object @media
 | |
| attribute :id, :type
 | |
| node(:url) { |media| full_asset_url(media.file.url(:original)) }
 | |
| node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
 | |
| node(:text_url) { |media| medium_url(media) }
 |