Skip to content

Commit

Permalink
Update activestorage RBI to pass checks.
Browse files Browse the repository at this point in the history
And update index.json as well.
  • Loading branch information
connorshea committed Sep 24, 2022
1 parent 3d4c7dc commit 0965278
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
"active_record"
]
},
"activestorage": {
"dependencies": [
"rails"
],
"requires": [
"rails",
"active_storage/engine",
"active_storage"
]
},
"activesupport": {
"requires": [
"active_support",
Expand Down
4 changes: 4 additions & 0 deletions rbi/annotations/activestorage.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
class ActiveStorage::Attached::One
# @shim: Methods on Attached::One are delegated to `ActiveStorage::Blob` through `ActiveStorage::Attachment` using `method_missing`
include ActiveStorage::Blob::Analyzable
# @shim: Methods on Attached::One are delegated to `ActiveStorage::Blob` through `ActiveStorage::Attachment` using `method_missing`
include ActiveStorage::Blob::Identifiable
# @shim: Methods on Attached::One are delegated to `ActiveStorage::Blob` through `ActiveStorage::Attachment` using `method_missing`
include ActiveStorage::Blob::Representable
end

class ActiveStorage::Attached::Many
# @shim: Methods on Attached::Many are delegated to `ActiveStorage::Blob` through `ActiveStorage::Attachment` using `method_missing`
include ActiveStorage::Blob::Analyzable
# @shim: Methods on Attached::Many are delegated to `ActiveStorage::Blob` through `ActiveStorage::Attachment` using `method_missing`
include ActiveStorage::Blob::Identifiable
# @shim: Methods on Attached::Many are delegated to `ActiveStorage::Blob` through `ActiveStorage::Attachment` using `method_missing`
include ActiveStorage::Blob::Representable
end

0 comments on commit 0965278

Please sign in to comment.