Skip to content

v1.4.0

Choose a tag to compare

@jlw jlw released this 13 Apr 02:42
· 12 commits to master since this release
2cf94c6

What Changed

This is the first release of rails_simple_params after forking from rails_param. This is a bug fix upgrade from v1.3.1 of rails_param.

Fixes

  • Do not try to coerce "" for numeric and date params in #1
    • this fix was originally submitted to rails_param 15 months ago
    • this allows optional integer params used in HTML forms (e.g. for searching) to be defined without the horrid pattern of first checking to see whether the param is present, e.g.:
      • param! :user_id, Integer unless params[:user_id].blank?

Other Changes

  • start using rubocop to apply a style guide
  • always run tests against all supported versions of Rails (7.1, 7.2, 8.0) and all supported versions of Ruby (3.2, 3.3, 3.4)
  • do not actively support versions of Ruby or Rails that have reached their official end-of-life

Full Change Set

v1.3.1...v1.4.0