Module: PremailerInlineFix::Premailer::Rails::CSSLoaders::AssetPipelineLoader

Extended by:
AssetPipelineLoader
Included in:
AssetPipelineLoader
Defined in:
lib/premailer-rails-inline-css-fix/premailer.rb

Instance Method Summary collapse

Instance Method Details

#file_name(url) ⇒ Object



18
19
20
21
22
# File 'lib/premailer-rails-inline-css-fix/premailer.rb', line 18

def file_name(url)
  temp_path = URI(url).path
  .sub("#{::Rails.configuration.assets.prefix}/", '')
  .sub(/-\h{32}\.css$/, '.css').sub('/stylesheets/', '')
end