Sha256: f0c7c633a404da3b7ce8cec3b578af24498f72b4594b4fcff48f8f470ba44fb5

Contents?: true

Size: 598 Bytes

Versions: 61

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Webpacker
    module Runner
      def self.included(base)
        base.alias_method :original_initialize, :initialize
        base.send :private, :original_initialize

        base.define_method :initialize do |argv|
          original_initialize(argv)
          decidim_initialize(argv)
        end
      end

      private

      def decidim_initialize(_argv)
        # Write the runtime configuration and override the configuration
        @webpacker_config = Decidim::Webpacker.configuration.configuration_file
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
decidim-0.27.9 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.27.9 lib/decidim/webpacker/runner.rb
decidim-0.27.8 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.27.8 lib/decidim/webpacker/runner.rb
decidim-0.27.7 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.27.7 lib/decidim/webpacker/runner.rb
decidim-0.27.6 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.27.6 lib/decidim/webpacker/runner.rb
decidim-0.26.10 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.26.10 lib/decidim/webpacker/runner.rb
decidim-0.26.9 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.26.9 lib/decidim/webpacker/runner.rb
decidim-0.27.5 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.27.5 lib/decidim/webpacker/runner.rb
decidim-0.26.8 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.26.8 lib/decidim/webpacker/runner.rb
decidim-0.27.4 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.27.4 lib/decidim/webpacker/runner.rb
decidim-0.27.3 decidim-core/lib/decidim/webpacker/runner.rb
decidim-core-0.27.3 lib/decidim/webpacker/runner.rb