Module: ActiveMail::CompiledStylesheet

Extended by:
T::Sig
Defined in:
lib/activemail/rails/compiled_stylesheet.rb

Overview

Reads a compiled CSS asset’s bytes (Sprockets or Propshaft, by duck-type) — the bytes, not a digest URL, are what the Premailer adapter needs to inline.

Class Method Summary collapse

Class Method Details

.read(logical_path) ⇒ Object



16
17
18
# File 'lib/activemail/rails/compiled_stylesheet.rb', line 16

def read(logical_path)
  sprockets_source(logical_path) || propshaft_source(logical_path) || ''
end