Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow expires_in for ActiveStorage signed ids #42059

Merged
merged 1 commit into from
Jun 5, 2021
Merged

Allow expires_in for ActiveStorage signed ids #42059

merged 1 commit into from
Jun 5, 2021

Conversation

aki77
Copy link
Contributor

@aki77 aki77 commented Apr 23, 2021

This commit allows passing a expires_in: keyword argument to signed_id.
This matches the signature of the super methods in ActiveRecord.

This is useful for generating expiring URLs.

Related Issues: #38843

Copy link
Contributor

@santib santib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

Copy link
Member

@zzak zzak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice 👏

@aki77
Copy link
Contributor Author

aki77 commented Jun 4, 2021

@santib @zzak Thanks for the review!
What else do I need to do to get this PR merged?

@zzak
Copy link
Member

zzak commented Jun 4, 2021

I think we'll need @pixeltrix to give it a look 🙇

@pixeltrix
Copy link
Contributor

@aki77 can you add a CHANGELOG entry, please - other than that 👍🏻

@aki77
Copy link
Contributor Author

aki77 commented Jun 4, 2021

@pixeltrix Thanks!
CHANGELOG has been added. 👍

@pixeltrix pixeltrix merged commit 18391a1 into rails:main Jun 5, 2021
@pixeltrix
Copy link
Contributor

@aki77 thanks 👍🏻

@aki77 aki77 deleted the active-storage-signed-id-expires_in branch June 5, 2021 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants