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

Use attach method for has many attachments #122

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

K4sku
Copy link

@K4sku K4sku commented May 8, 2023

This PR does four things:

  1. Fixes displaying delete checkboxes for has_many_attachments files.
  2. Prevents overwriting attachments on adding new files in has_many_attachments.
    I'm aware of config.active_storage.replace_on_assign_to_many = false, but I think it's good not to rely on the legacy fallback option.
  3. Set the minimal rails version to 6 due to point 2.
  4. Bumps gem version to 3.1.0

Copy link

@Tao-Galasse Tao-Galasse left a comment

Choose a reason for hiding this comment

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

This should clearly be merged & deployed on Rubygems 🚀

Do you think you could take a moment to do this @richardvenneman please? 😊 🙏

lib/trestle/active_storage/controller_concern.rb Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants