combustion icon indicating copy to clipboard operation
combustion copied to clipboard

Load defaults for Rails 7.2+

Open ankane opened this issue 1 year ago • 3 comments

For #138

load_defaults was added in Rails 5.1: https://github.com/rails/rails/pull/28469

Also, this might be considered a breaking change.

ankane avatar Mar 29 '24 08:03 ankane

Updated to only apply to Rails 7.2+ for backwards compatibility (as suggested in #138).

Edit: Also, sorry for all the noise.

ankane avatar Mar 29 '24 08:03 ankane

No need to apologise, appreciate you working on this!

I wonder if it's worth releasing this starting from 7.2+ initially (so it's not a breaking change) to confirm things work well, but then consider using it for 5.1+ as a major release/breaking change, and then that opens up removal of a couple of conditionals:

  • lib/combustion/application.rb:28
  • lib/combustion/configurations/active_record.rb:7

Not as many as I'd hoped, though! But still, I think it's worth the breaking change, as verifying we're using default behaviour in each release is a Very Good Idea.

pat avatar Mar 29 '24 08:03 pat

Sounds like a plan. fwiw, I've been doing this for a few months for my projects and haven't seen any issues (as one data point).

ankane avatar Mar 29 '24 17:03 ankane

Finally published this in v1.5.0 - thanks for your patience (and contributions!) ❤️

pat avatar Jul 07 '24 06:07 pat

Great, thanks @pat!

ankane avatar Jul 07 '24 17:07 ankane