- Add support for Ruby 3.3. (no changes required)
- Add support for Rails 7.0/7.1 and Ruby 3.1/3.2 (no changes required)
- Remove test files from the gem package.
- Respect
nil
value when provided, by skipping model attribute value. - Add support for Ruby 3.0, drop support for Ruby < 2.5.
- Add support for Rails 6.1, drop support for Rails < 5.2.
- Move CI to GitHub Actions.
- Add support for Rails 6.0.
- Drop support for Rails < 5.0 and Ruby < 2.4.
- Add support for Rails 5.2.
- Fix issue causing blank class not being applied to field wrapper when the result of a Proc is empty.
- Relaxed dependencies to support Rails 5.1.
- Relaxed dependencies to support Rails 5.
- Removed support for Rails
3.2
and4.0
and Ruby1.9.3
and2.0.0
.
- Do not generate label/content/wrapper/collection classes when config is set to
nil
.
- Change default
wrapper_tag
to generate adiv
instead ofp
. Thep
tag generates invalid HTML with collections:p > ul
, and failed tests on Rails 4.2. If you depend on thep
tag being generated, change your Show For config to setwrapper_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)
- Do not yield default blank value to the block when using an empty association. (by github.com/aptinio)
- Fix blank value not being applied when using a block. (by github.com/tfwright)
- Support Rails 4.
- Drop support to Rails < 3.2 and Ruby 1.8.
- Ruby 2.0 support.
- Add Haml template. (by github.com/nashby) Closes #12.
- Add
blank_html
tanslation. (by github.com/nashby) - Add
show_for_class
configuration option. (by github.com/nashby)
- Make show_for works with namespaced models. (by github.com/fabiokr)
- Add
blank_content_class
to the attributes. (by github.com/blakehilscher). Closes #24. - Don't call
association.map
if association method is nil (by github.com/nashby). Closes #40.
- Add a
:value
option for attribute (by github.com/ml-gt) - Add
label_class
,content_class
,wrapper_class
andcollection_class
configuration options (by github.com/wojtekmach)
- Fix problem with
label => false
andhtml_safe
(label => false) (by github.com/nashby)
- Do not add separator if label is not present (by github.com/eugenebolshakov)
- Add method for output value only (by github.com/jenkek)
- Fix empty labels to be
html_safe
(label => false) (by github.com/eugenebolshakov)
- added :attributes method to generate all attributes given
- update generator to use the new syntax show_for:install
- fix numeric types
- allow show_for to work with AR association proxies
- improvements on html safe and output buffers
- added label_proc
- compatibility with latest Rails
- Rails 3 compatibility
- allow show_for to work with AR association proxies
- allow builder to be given to show_for
- Fix typo in yaml
- allow
f.attribute :nickname, in: :profile
as association shortcut
:method
now becomes:using
- HAML compatibility (by github.com/grimen)
- blank_content support (by github.com/grimen)