method

format

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: Representable
format() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/app/models/active_storage/blob/representable.rb, line 112
    def format
      if filename.extension.present? && MiniMime.lookup_by_extension(filename.extension)&.content_type == content_type
        filename.extension
      else
        MiniMime.lookup_by_content_type(content_type)&.extension
      end
    end
Register or log in to add new notes.