Active Storage Blob 可識別性
方法
執行個體公有方法
identified?() 連結
來源:顯示 | 在 GitHub 上
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 17 def identified? identified end
identify() 連結
來源:顯示 | 在 GitHub 上
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 5 def identify identify_without_saving save! end
identify_without_saving() 連結
來源:顯示 | 在 GitHub 上
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 10 def identify_without_saving unless identified? self.content_type = identify_content_type self.identified = true end end