Update web app metadata when first creating a record
This commit is contained in:
		
							parent
							
								
									d4f71e98ed
								
							
						
					
					
						commit
						0a69603643
					
				@ -12,7 +12,7 @@ class AppCatalog::WebApp < ApplicationRecord
 | 
				
			|||||||
  validates :url, format: { with: URI.regexp },
 | 
					  validates :url, format: { with: URI.regexp },
 | 
				
			||||||
                  if: Proc.new { |a| a.url.present? }
 | 
					                  if: Proc.new { |a| a.url.present? }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # before_create :update_metadata
 | 
					  before_create :update_metadata
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def update_metadata
 | 
					  def update_metadata
 | 
				
			||||||
    AppCatalogManager::UpdateMetadata.call(self)
 | 
					    AppCatalogManager::UpdateMetadata.call(self)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user