Sha256: 79453d6532ccc9dba500447b7d4c91cf7b085afaa3c3b8af79edf3bed68a01db

Contents?: true

Size: 439 Bytes

Versions: 21

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

require "rake"

module NeetoCommonsBackend
  module Initializers
    module PostCompilation
      def self.run
        if Rake::Task.task_defined?("assets:clean")
          Rake::Task["assets:clean"].enhance { Rake::Task["assets:post_compilation"].invoke }
        else
          Rake::Task.define_task("assets:clean") { Rake::Task["assets:post_compilation"].invoke }
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neeto-commons-backend-1.0.89 lib/neeto_commons_backend/initializers/post_compilation.rb