ruby / ruby/gem_rbs_collection

ActiveStorage 6.1+ does not delegate properly from `Attached` to `Attachment` to `Blob`.

Open
#851 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
303
Forks
136
Avg merge
5h 15m
Merged PRs (30d)
6

Description

ActiveStorage specs for versions 6.1 and up don't reflect several methods that are delegated from the Attached::* objects to the Attachment object, and from Attachment to the Blob model. For example, url and filename are both available on Attached::One through Blob, but either have no signature (filename) or an inaccurate signature (filename). In part this is due to incomplete specs, and in part it is due to symlink delegation to earlier versions.

I will try to supply more detail when off work.

Relevant links:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the ActiveStorage RBS files linked for versions 6.0, 6.1, and 7.0 with the referenced Rails Blob delegation locations. Review the Attached::One, Attachment, and Blob signatures, including url and filename, and ensure the specifications accurately represent the delegation across supported versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.