Skip to content

v0.17.0

Compare
Choose a tag to compare
@zachahn zachahn released this 17 Jun 08:21
· 126 commits to main since this release

Added

  • Some new filter types
  • Super::Schema::Fields#delete(key) for deleting fields from a defined schema.
    It works like Hash#delete
  • Filtering for boolean columns

Changed

  • Filter operators can have any number of inputs
  • Controller's #member_actions now accepts record argument
  • Link and LinkBuilder's #to_s methods now accept the same arguments
  • Unified how the #create and #update actions set the record's attributes.
    Use #set_record_attributes to customize what gets set

Removed

  • Form schema's #generic. Prefer #partial
  • Form schema's #select(collection:) keyword argument. Prefer specifying the
    positional argument: #select(collection)
  • Form schema's #has_many and #has_one when used without a block argument.
    Those methods now yield a variable, similar to f.fields_for
  • Some filter types that had overlapping functionality with existing ones
  • #build_record_with_params which used to set attributes on the create action
  • #update_record which was used to set attributes on the update action

Fixed

  • #permitted_params's handling of #current_action
  • Flatpickr form fields where the value was a string, but more specifically when
    used with filtering