This commit is contained in:
Toks
2015-01-19 14:40:33 -05:00
parent 8b2b981b80
commit 9788ee069a

View File

@@ -2,7 +2,7 @@ class ArtistUrl < ActiveRecord::Base
before_save :initialize_normalized_url, on: [ :create ]
before_save :normalize
validates_presence_of :url
belongs_to :artist
belongs_to :artist, :touch => true
attr_accessible :url, :artist_id, :normalized_url
def self.normalize(url)