Skip to content

Latest commit

 

History

History
224 lines (184 loc) · 10.3 KB

CHANGELOG.md

File metadata and controls

224 lines (184 loc) · 10.3 KB

Changelog

1.1.0

Bug Fixes

  • Fixed #5093 Handle table prefix & table suffix for ActiveAdminComment model
  • Fixed #4173 by including the default Kaminari templates #5069 by @javierjulio
  • Fixed #5043. Do not crash in sidebar rendering when a default scope is not specified. #5044 by @Fivell.
  • Fixed #3894. Make tab's component work with non-ascii titles. #5046 by @Fivell.

Removals

Deprecations

  • Deprecated config.register_stylesheet and config.register_javascript. Import your CSS and JS files in active_admin.scss or active_admin.js. #5060 by @javierjulio
  • Deprecated type param from status_tag and related CSS classes #4989 by @javierjulio
    • The method signature has changed from:

      status_tag(status, :ok, class: 'completed', label: 'on')

      to:

      status_tag(status, class: 'completed ok', label: 'on')
    • The following CSS classes have been deprecated and will be removed in the future:

      .status_tag {
        &.ok, &.published, &.complete, &.completed, &.green { background: #8daa92; }
        &.warn, &.warning, &.orange { background: #e29b20; }
        &.error, &.errored, &.red { background: #d45f53; }
      }

Enhancements

Minor

  • Support proc as an input_html option value when declaring filters #5029 by @Fivell
  • Base localization support, better associations handling for active filters sidebar #4951 by @Fivell
  • Allow AA scopes to return paginated collections #4996 by @Fivell
  • Added scopes_show_count configuration to setup show_count attribute for scopes globally #4950 by @Fivell
  • Allow custom panel title given with attributes_table #4940 by @ajw725
  • Allow passing a class to action_item block #4997 by @Fivell
  • Add pagination to the comments section #5088 by @alex-bogomolov

1.0.0

Breaking Changes

Enhancements

Major

Minor

    controller do
      # Redirects to index page instead of rendering updated resource
      def update
        update!{ collection_path }
      end
    end
index download_links: ->{ can?(:view_all_download_links) || [:pdf] }
  • Comments menu can be customized via configuration passed to config.comments_menu #4187 by @drn
  • Added config.route_options to namespace to customize routes [#4467][] by [@stereoscott[]]

Security Fixes

Bug Fixes

  • Fixes filters for has_many :through relationships #2541 by @shekibobo
  • "New" action item now only shows up on the index page bf659bc by @seanlinsley
  • Fixes comment creation bug with aliased resources 9a082486 by @seanlinsley
  • Fixes the deletion of :if and :unless from filters #2523 by @PChambino

Deprecations

  • ActiveAdmin::Event (ActiveAdmin::EventDispatcher) [#3435][] by @timoschilling ActiveAdmin::Event will be removed in a future version, ActiveAdmin switched to use ActiveSupport::Notifications. NOTE: The blog parameters has changed:
ActiveSupport::Notifications.subscribe ActiveAdmin::Application::BeforeLoadEvent do |event, *args|
  # some code
end

ActiveSupport::Notifications.publish ActiveAdmin::Application::BeforeLoadEvent, "some data"

Previous Changes

Please check 0-6-stable for previous changes.