Sha256: 8bcda788f9dbbce4c7253633604f321d13aa444020ad0855c651751cb8f991ce

Contents?: true

Size: 487 Bytes

Versions: 8

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module Maglev
  class ApplicationController < ::ApplicationController
    include Maglev::ServicesConcern

    protect_from_forgery with: :exception

    helper_method :services, :use_engine_vite?

    private

    def use_engine_vite?
      true
    end

    def resource_id
      # A standard UUID code contains 32 hex digits along with 4 "-"" symbols
      Maglev.uuid_as_primary_key? && params[:id] ? params[:id][0..35] : params[:id]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
maglevcms-1.8.0 app/controllers/maglev/application_controller.rb
maglevcms-1.7.3 app/controllers/maglev/application_controller.rb
maglevcms-1.7.2 app/controllers/maglev/application_controller.rb
maglevcms-1.7.1 app/controllers/maglev/application_controller.rb
maglevcms-1.7.0 app/controllers/maglev/application_controller.rb
maglevcms-1.6.1 app/controllers/maglev/application_controller.rb
maglevcms-1.6.0 app/controllers/maglev/application_controller.rb
maglevcms-1.5.1 app/controllers/maglev/application_controller.rb