Source: show | on GitHub
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 18 def identified? identified end
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 6 def identify identify_without_saving save! end
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 11 def identify_without_saving unless identified? self.content_type = identify_content_type self.identified = true end end