Releases: Dreamersoul/administrate-field-active_storage
Releases · Dreamersoul/administrate-field-active_storage
ActiveStorage Field v0.3.2
fixes: #37
ActiveStorage Field v0.3.1
this release is again an amazing release done by sedubois
- removes the need to explicitly configure the field when defining the destroy route in a standard manner
- this convention can be overridden/customized with more flexibility by giving access to the Administrate
namespace
,record
andattachment
objects - cleans up the code related to the attachment destroy action
- I also took the opportunity to improve the definition of
many?
ActiveStorage Field v0.3.0
Huge thanks to @sedubois for this amazing release
Preview display:
index_display_preview
replacesshow_in_index
as the term "show" can be ambiguous with theshow
actionshow_display_preview
replacesurl_only
for coherence. This also fixes the issue thaturl_only
applied to theindex
and was thus interfering withshow_in_index
.- both values default to
true
Preview size:
- centralizes the size defaults into the library code
- set separate default sizes
index_preview_size
andshow_preview_size
for theindex
andshow
actions, respectively - adds more responsiveness to video attachments
Displaying number of attachments in index action (index_display_count
):
- defaults to
true
if number of attachments is not 1
Show:
- display "No attachment" if no attachment present
Edit:
- change "Add" text to "Replace" if attachment is
has_one
and already has an attachment
DRY code:
- remove multiple calls to
field.url_only?
- simplify calls to
field.attached?
- remove multiple
link_to
s which were somewhat arbitrarily wrapping some preview types and not others (for instance it was not possible to download a video). Replaced by a single "Download" link (so this mostly reverts my PR #31).
ActiveStorage Field v0.2.2
ActiveStorage Field v0.2.1
- Fixed data being nil #13 fixed in PR #24 thanks to Eugeny Khlopin @evgeniy-khlopin
- Better Rails 6 image transform in PR #25 thanks to Daniel Tinoco @0urobor0s
ActiveStorage Field v0.2.0
rails 6 support thanks to Joé Dupuis @twistedjoe
ActiveStorage Field v0.1.8
ActiveStorage Field v0.1.7
Added Features:
- added
show_in_index
option to show thumbnail in the index page - added
show_preview_size
option to resize images in the show page
ActiveStorage Field v0.1.6
Features Added:
- better representation for collection view (closes #3)