Skip to content

v0.21.0

Compare
Choose a tag to compare
@zachahn zachahn released this 05 Jun 14:20
· 34 commits to main since this release

Improvements

  • Added overridable controller methods (which are now called by the current
    controller actions). This'll let you customize controller actions without
    overriding the entire action.
  • Added customizable error handling for the #destroy action
  • Added a warning and an explicit end to Super::ViewChain
  • Added a way to override the Super::Display attribute name

Deprecations

  • Deprecated Super::Display:SchemaTypes#badge. Prefer using #real and
    #computed, and return an instance of Super::Badge
  • Deprecated #real(:column) and #computed(:column). Prefer using
    #real(:attribute) and #computed(:attribute)
  • Deprecated Super::Navigiation.new needing a block that yields an array
  • Deprecated Super::Badge.new(text, styles:) in favor of the singular
    style:. Example: Super::Badge.new(text, style: :blue)
  • Deprecated Super::Badge's handling of string styles

Breaking changes

  • Super::Navigation no longer supports #menu(title)[*links]; method
    signature is now #menu(title) do
  • Rework Super::Query. This should only affect you if you've fully overrode an
    action or created your own database querying class

Fixed

  • #destroy now redirects to the index page (instead of to the record that was
    just deleted)
  • Fixed typo Super::Error::Initalization to Initialization
  • Automatically require CSV