diff options
Diffstat (limited to 'activestorage/app/models/active_storage/blob/identifiable.rb')
-rw-r--r-- | activestorage/app/models/active_storage/blob/identifiable.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activestorage/app/models/active_storage/blob/identifiable.rb b/activestorage/app/models/active_storage/blob/identifiable.rb new file mode 100644 index 0000000000..40ca84ac70 --- /dev/null +++ b/activestorage/app/models/active_storage/blob/identifiable.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module ActiveStorage::Blob::Identifiable + def identify + ActiveStorage::Identification.new(self).apply + end + + def identified? + identified + end +end |