Skip to content

Releases: Dreamersoul/administrate-field-active_storage

ActiveStorage Field v0.3.2

17 Apr 14:09
Compare
Choose a tag to compare

ActiveStorage Field v0.3.1

14 Apr 13:28
Compare
Choose a tag to compare

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 and attachment 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

13 Apr 13:42
35185a3
Compare
Choose a tag to compare

Huge thanks to @sedubois for this amazing release
Preview display:

  • index_display_preview replaces show_in_index as the term "show" can be ambiguous with the show action
  • show_display_preview replaces url_only for coherence. This also fixes the issue that url_only applied to the index and was thus interfering with show_in_index.
  • both values default to true

Preview size:

  • centralizes the size defaults into the library code
  • set separate default sizes index_preview_size and show_preview_size for the index and show 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_tos 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

06 Mar 12:33
Compare
Choose a tag to compare

Bug fixes:

  • Matthew Hui @mhui: Support previews for images that ImageMagick doesn't support #32
    Features:
  • Sébastien Dubois @sedubois: Link to download attachment

ActiveStorage Field v0.2.1

27 Oct 14:51
Compare
Choose a tag to compare

ActiveStorage Field v0.2.0

07 Sep 08:00
Compare
Choose a tag to compare

rails 6 support thanks to Joé Dupuis @twistedjoe

ActiveStorage Field v0.1.8

08 Jun 20:53
Compare
Choose a tag to compare

Updated Readme to account for N+1 queries.
Fixes show_in_index? always return true if destroy path is set causing unexpected behaviour.

related issues and PR's
#17 #18

ActiveStorage Field v0.1.7

05 Jun 15:10
Compare
Choose a tag to compare

Added Features:

  1. added show_in_index option to show thumbnail in the index page
  2. added show_preview_size option to resize images in the show page

ActiveStorage Field v0.1.6

12 Apr 14:04
Compare
Choose a tag to compare

Features Added:

  • better representation for collection view (closes #3)

ActiveStorage Field v0.1.5

11 Feb 15:25
Compare
Choose a tag to compare

Thanks to the contribution of:

  1. Kadu Diógenes @cerdiogenes

we now have direct uploads