Sha256: cff691118418d9dfd813d9552101b484f69a6f2336c9c7990c06916ca3b2c821

Contents?: true

Size: 585 Bytes

Versions: 7

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    class << self
      # TODO: Set the correct prefix after renaming all the tables?
      def table_name_prefix
        ''
      end

      def webpacker
        @webpacker ||=
          begin
            root_path = Pathname.new File.expand_path('../..', __dir__)
            ::Webpacker::Instance.new(
              root_path: root_path,
              config_path: root_path.join('config/webpacker.yml')
            )
          end
      end
    end
  end
end

require 'lcms/engine/engine'
require 'lcms/engine/migration'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lcms-engine-0.3.1 lib/lcms/engine.rb
lcms-engine-0.1.4 lib/lcms/engine.rb
lcms-engine-0.3.0 lib/lcms/engine.rb
lcms-engine-0.1.3 lib/lcms/engine.rb
lcms-engine-0.2.0 lib/lcms/engine.rb
lcms-engine-0.1.2 lib/lcms/engine.rb
lcms-engine-0.1.0 lib/lcms/engine.rb