when creating artists, do not create a wiki page if there are no notes
This commit is contained in:
@@ -145,10 +145,12 @@ class Artist < ActiveRecord::Base
|
|||||||
wiki_page.body = msg
|
wiki_page.body = msg
|
||||||
wiki_page.save
|
wiki_page.save
|
||||||
else
|
else
|
||||||
|
if msg.present?
|
||||||
self.wiki_page = WikiPage.new(:title => name, :body => msg)
|
self.wiki_page = WikiPage.new(:title => name, :body => msg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
module TagMethods
|
module TagMethods
|
||||||
def has_tag_alias?
|
def has_tag_alias?
|
||||||
|
|||||||
Reference in New Issue
Block a user