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