Releases: varyonic/activeadmin-rails
Releases · varyonic/activeadmin-rails
v1.7.0
The focus of v1.7 has been to:
- use Rails layouts, views and partials,
- to deprecate controller meta-programming
- to make resource and page DSL optional.
In detail:
- Uses a faster and more memory efficient fork of
Arbre
calledArbo
. Elements are rendered usingrender_in
instead ofto_s
.render_in
may be used with either anArbo::Context
or anActionView::Context
. - Uses Rails layout
views/layouts/active_admin.html.erb
andviews/active_admin/_head.html.erb
.Views::Pages::Base
andViews::Pages::Layout
have been removed and are no longer available for subclassing or customization. - Uses the following Rails partials instead of Arbre view components. The replaced view components have been removed and are no longer available for subclassing or customization:
views/active_admin/base/_header.html.arb
replacesViews::Header
views/active_admin/base/_title_bar.html.arb
replacesViews::TitleBar
views/active_admin/base/_action_items.html.arb
replacesViews::ActionItems
views/active_admin/base/_sidebar.html.arb
replacesViews::Sidebar
views/active_admin/base/_footer.html.arb
replacesViews::Footer
- Reduced configuration DSL and controller meta-programming:
- Using
controller do ... end
is deprecated in favor of defining and adding to a subclass ofPageController
orResourceController
. actions
andbefore_|after_
callbacks should be defined directly in the controller.- Passing blocks to
member_action
,collection_action
orpage_action
is deprecated in favor of adding methods to the controller. - Passing blocks to
batch_action
is deprecated in favor of adding protected methods to the controller. permit_params
is deprecated in favor of addingpermitted_attr_names
to the controller.- Passing a block to the show page presenter is deprecated in favor of defining a partial,
_show.html.arb
.Views::Pages::Show
has been removed and is no longer available for subclassing. - Passing a block to the form page presenter is deprecated in favor of defining a partial,
_form.html.arb
.Views::Pages::Form
has been removed and is no longer available for subclassing. - Passing a block to the index page presenter for
:table
is deprecated in favor of defining a partial_index_as_table.html.arb
.Views::Pages::Index
has been removed and is no longer available for subclassing. content do ... end
is deprecated in favor of defining a partial,_content.html.arb
.- Setting page presenter
:title
is deprecated in favor of settingcontent_for(:page_title)
in a partial instead. - Using
action_item
is deprecated in favor of defining a partial,_action_items.html.arb
and populating with links. - Using
filter
is deprecated in favor of defining a partial,_filters_form.html.erb
and passing filter settings intoactive_admin_filters_form_for
- Using
1.6.0
1.5.2
- Fix Ruby 2.7 warnings about keyword args. activeadmin#6000, activeadmin#6237 by @vcsjones and @deivid-rodriguez
- Fix CSVBuilder not respecting
ActiveAdmin.application.csv_options = { humanize_name: false }
setting. activeadmin#5800 by @HappyKadaver
1.5.0
1.4.0
Enhancements
Minor
- Fix batch_actions.delete_confirmation translation in zh-CN.yml. [activeadmin#5453] by [@ShallmentMo]
- Add some missing italian translations. [activeadmin#5433] by [@stefsava]
- Enhance some chinese translations. [activeadmin#5413] by [@shouya]
- Add missing filter predicate translations to nb. [activeadmin#5357] by [@rogerkk]
- Add missing norwegian comment translations. [activeadmin#5375] by [@rogerkk]
- Add missing dutch translations. [activeadmin#5368] by [@dennisvdvliet]
- Add missing german translations. [activeadmin#5341] by [@eikes]
- Add missing spanish translation. [activeadmin#5336] by [@mconiglio]
- Add from and to predicates for russian language. [activeadmin#5330] by [@glebtv]
- Fix typo in finnish translation. [activeadmin#5320] by [@JiiHu]
- Add missing turkish translations. [activeadmin#5295] by [@kobeumut]
- Add missing chinese translations. [activeadmin#5266] by [@jasl]
- Allow proc label in datepicker input. [activeadmin#5408] by [@tiagotex]
- Add
group
attribute to scopes in order to show them in grouped. [activeadmin#5359] by [@leio10] - Add missing polish translations and improve existing ones. [activeadmin#5537] by [@wowu]
- Add
priority
option toaction_item
. [activeadmin#5334] by [@andreslemik]
Bug Fixes
- Fixed "create anoter" checkbox styling. [activeadmin#5324] by [@faucct]
- Fix
input_html
filter option evaluated only once. [activeadmin#5376] by [@kjeldahl] - Fixed the string representation of the resolved
sort_key
when no explicitsortable
attribute is passed. [activeadmin#5464] by [@chumakoff] - Fixed docs on the column
sortable
attribute (which actually doesn't have to be explicitly specified when a block is passed to column). [activeadmin#5464] by [@chumakoff] - Add missing I18n for comments. [activeadmin#5458], [activeadmin#5461] by [@mauriciopasquier]
- Fixed
if:
scope option when a lambda is passed. [activeadmin#5501] by [@deivid-rodriguez] - Comment validation adding redundant errors when resource is missing. [activeadmin#5517] by [@deivid-rodriguez]
- Fixed resource filtering by association when the resource has custom primary key. [activeadmin#5446] by [@wasifhossain]
- Fix menu item link with method delete. [activeadmin#5583] by [@tiagotex]