Sha256: 41bf74b19aee4a092f54170bc39baf054ada4940102121d5b9ffe9eae03c260e
Contents?: true
Size: 724 Bytes
Versions: 18
Compression:
Stored size: 724 Bytes
Contents
# frozen_string_literal: true module Maglev module ServicesConcern extend ActiveSupport::Concern included do helper_method :maglev_config, :maglev_services end private def services # NOTE: neither alias nor alias_method could work in the PRO engine maglev_services end def maglev_services @maglev_services ||= ::Maglev.services( context: build_maglev_service_context ) end def build_maglev_service_context ::Maglev::ServiceContext.new( rendering_mode: maglev_rendering_mode, controller: self ) end def maglev_rendering_mode :live end def maglev_config Maglev.config end end end
Version data entries
18 entries across 18 versions & 1 rubygems