app/controllers/concerns/maglev/services_concern.rb in maglevcms-1.6.0 vs app/controllers/concerns/maglev/services_concern.rb in maglevcms-1.6.1
- old
+ new
@@ -14,12 +14,16 @@
# NOTE: neither alias nor alias_method could work in the PRO engine
maglev_services
end
def maglev_services
- @maglev_services ||= ::Maglev.services(
+ @maglev_services ||= ::Maglev.services(maglev_services_overrides)
+ end
+
+ def maglev_services_overrides
+ {
context: build_maglev_service_context
- )
+ }
end
def build_maglev_service_context
::Maglev::ServiceContext.new(
rendering_mode: maglev_rendering_mode,