Class: Propshaft::Asset

Inherits:
Object
  • Object
show all
Defined in:
lib/tinymce/rails/propshaft/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/tinymce/rails/propshaft/asset.rb', line 7

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

#fresh_without_tinymce_exception?Object



4
# File 'lib/tinymce/rails/propshaft/asset.rb', line 4

alias fresh_without_tinymce_exception? fresh?