Sha256: 2347f5dc8d18e1f58d44181e4f27ac1f122085aa0be44d2b5e1c12998aabe883

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

module RailsDevtools
  module AssetProviders
    class PropshaftConfig
      def provider
        :propshaft
      end

      def paths
        Rails.application.config.assets.paths.select { |p| p.to_s.end_with?("images") }
      end

      def used?
        defined?(Propshaft)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_devtools-0.1.3 lib/rails_devtools/asset_providers/propshaft_config.rb
rails_devtools-0.1.2 lib/rails_devtools/asset_providers/propshaft_config.rb
rails_devtools-0.1.1 lib/rails_devtools/asset_providers/propshaft_config.rb
rails_devtools-0.1.0 lib/rails_devtools/asset_providers/propshaft_config.rb