Skip to content

Ruby 3.x compatibility: update gemspec and replace deprecated APIs#20

Open
kitcommerce wants to merge 1 commit intomasterfrom
ruby3-compatibility
Open

Ruby 3.x compatibility: update gemspec and replace deprecated APIs#20
kitcommerce wants to merge 1 commit intomasterfrom
ruby3-compatibility

Conversation

@kitcommerce
Copy link

Summary

Modernizes the plugin for Ruby 3.2+ compatibility.

Changes

  • Set required_ruby_version to ['>= 2.7', '< 3.5'] in gemspec
  • Replace update_attributes! with update! (deprecated/removed in Rails 6.1+)

Files Changed

  • workarea-package_products.gemspec
  • app/controllers/workarea/admin/create_catalog_package_products_controller.rb

Testing

  • Verified no remaining update_attributes calls
  • Backward compatible with Ruby 2.7+

Client impact: None — backward compatible

Closes workarea-commerce/workarea#677

…cated APIs

- Set required_ruby_version to ['>= 2.7', '< 3.5']
- Replace update_attributes! with update! (deprecated/removed in Rails 6.1+)

Fixes workarea-commerce/workarea#677
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.

WA-NEW-027: Plugin modernization Phase 3 — commerce plugins

1 participant