Methods

Instance Public methods

identified?()

📝 Source code
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 16
  def identified?
    identified
  end
🔎 See on GitHub

identify()

📝 Source code
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 4
  def identify
    identify_without_saving
    save!
  end
🔎 See on GitHub

identify_without_saving()

📝 Source code
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 9
  def identify_without_saving
    unless identified?
      self.content_type = identify_content_type
      self.identified = true
    end
  end
🔎 See on GitHub