Skip to content

Return the save status from update_resource #176

Backlog

Description

@jdguzman

From the #174 review.

ActiveAdmin 3.5.2's update_resource returns the result of save_resource. Our override returns whatever run_update_callbacks returns. Nothing in ActiveAdmin or InheritedResources reads it, but an app's custom update action might.

Return the save status to match upstream:

def update_resource(object, attributes)
  object = assign_attributes(object, attributes)
  status = nil
  run_update_callbacks(object) { status = save_resource(object) }
  status
end

A spec should cover the return value for both a successful and a failed save.

Activity

  1. added this to the 3.0.1 milestone on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions