Module: Premailer::Rails::CSSLoaders::CacheLoader

Extended by:
CacheLoader
Included in:
CacheLoader
Defined in:
lib/premailer/rails/css_loaders.rb

Overview

Loads the CSS from cache when not in development env.

Instance Method Summary collapse

Instance Method Details

#load(path) ⇒ Object



8
9
10
11
12
# File 'lib/premailer/rails/css_loaders.rb', line 8

def load(path)
  unless ::Rails.env.development?
    CSSHelper.cache[path]
  end
end