Sha256: 2244906de12d99f8ef4d3a81f058fa9f60859c449c48665dcf04fa6d1c526e8b

Contents?: true

Size: 292 Bytes

Versions: 12

Compression:

Stored size: 292 Bytes

Contents

class Premailer
  module Rails
    module CSSLoaders
      module FileSystemLoader
        extend self

        def load(url)
          path = URI(url).path
          file_path = "public#{path}"
          File.read(file_path) if File.exist?(file_path)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
premailer-rails-1.9.2 lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.9.1 lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.9.0 lib/premailer/rails/css_loaders/file_system_loader.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/premailer-rails-1.8.2/lib/premailer/rails/css_loaders/file_system_loader.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/premailer-rails-1.8.2/lib/premailer/rails/css_loaders/file_system_loader.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/premailer-rails-1.8.2/lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.8.2 lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.8.1 lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.8.0 lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.7.0 lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.6.1 lib/premailer/rails/css_loaders/file_system_loader.rb
premailer-rails-1.6.0 lib/premailer/rails/css_loaders/file_system_loader.rb