app/helpers/tramway/landing/application_helper.rb in tramway-landing-3.1.1 vs app/helpers/tramway/landing/application_helper.rb in tramway-landing-3.1.1.1
- old
+ new
@@ -12,18 +12,18 @@
forms
end
def block_title(block)
if block.page.page_type.main?
- content_for?(:application_name) && yield(:application_name).present? ? yield(:application_name) : @application.public_name
+ content_for?(:application_name) && content_for(:application_name).present? ? content_for(:application_name) : @application.public_name
else
block.page.title
end
end
def block_tagline(block)
if block.page.page_type.main?
- content_for?(:application_tagline) && yield(:application_tagline).present? ? yield(:application_tagline) : @application.tagline
+ content_for?(:application_tagline) && content_for(:application_tagline).present? ? content_for(:application_tagline) : @application.tagline
else
raw block.page.body
end
end
end