stubs/default/app/views/layouts/mailer.text.erb in kaze-0.2.0 vs stubs/default/app/views/layouts/mailer.text.erb in kaze-0.3.0
- old
+ new
@@ -3,9 +3,11 @@
<!-- Body -->
<%= yield %>
<!-- Subcopy -->
-<%= yield(:subcopy) %>
+<% if content_for?(:subcopy) %>
+<%= yield :subcopy %>
+<% end %>
<!-- Footer -->
© <%= Time.new.year %> <%= ENV.fetch("APP_NAME", "Rails") %>. All rights reserved.