ShowFor v0.4.0 Release Notes

Release Date: 2015-04-12 // about 9 years ago
  • ✨ enhancements

    • Change default wrapper_tag to generate a div instead of p. The p tag generates invalid HTML with collections: p > ul, and failed tests on Rails 4.2. If you depend on the p tag being generated, change your Show For config to set wrapper_tag to :p.
    • Remove deprecated :method in favor of :using.
    • Improve support to Rails 4.x associations with more duck typing instead of Array checks.
    • Support Rails 4.1/4.2 and Ruby 2.1/2.2.
    • Add skip_blanks configuration option to skip generating blank attributes instead of generating them with a default message. (by github.com/moktin)
    • Add slim template for the install generator. (by github.com/voanhduy1512)
    • Add separator option that overrides the global configuration (by github.com/bernardofire)

    🛠 bugfix

    • Do not yield default blank value to the block when using an empty association. (by github.com/aptinio)