lib/landable/partial.rb in landable-1.7.0 vs lib/landable/partial.rb in landable-1.7.1.rc1

- old
+ new

@@ -22,10 +22,15 @@ template.description = @description template.editable = false template.is_layout = false template.thumbnail_url ||= "http://placehold.it/300x200" + # Save! template.save! + + # Publish! + author = Author.find_or_create_by(username: 'TrogdorAdmin', email: 'trogdoradming@example.com', first_name: 'Marley', last_name: 'Pants') + template.publish! author: author template end class << self