app/controllers/concerns/maglev/fetchers_concern.rb in maglevcms-1.2.2 vs app/controllers/concerns/maglev/fetchers_concern.rb in maglevcms-1.3.0
- old
+ new
@@ -28,10 +28,11 @@
def fetch_maglev_page
@fetch_maglev_page ||= maglev_services.fetch_page.call(
path: maglev_page_path_from_params,
locale: content_locale,
default_locale: default_content_locale,
- fallback_to_default_locale: fallback_to_default_locale
+ fallback_to_default_locale: fallback_to_default_locale,
+ only_visible: maglev_rendering_mode == :live
)
end
def fetch_maglev_page_sections(page_sections = nil)
@fetch_maglev_page_sections ||= maglev_services.get_page_sections.call(