Module: Alchemy::Propshaft::TinymceAsset

Defined in:
lib/alchemy/propshaft/tinymce_asset.rb

Instance Method Summary collapse

Instance Method Details

#fresh?(digest) ⇒ Boolean

Allow TinyMCE assets to be accessed (in development mode) without a digest

Returns:

  • (Boolean)


7
8
9
10
# File 'lib/alchemy/propshaft/tinymce_asset.rb', line 7

def fresh?(digest)
  super ||
    (digest.blank? && logical_path.to_s.starts_with?("tinymce/"))
end