docs/8-custom-actions.md in activeadmin-1.3.1 vs docs/8-custom-actions.md in activeadmin-1.4.0
- old
+ new
@@ -144,9 +144,20 @@
if: proc{ current_admin_user.super_admin? } do
"Only display this to super admins on the show screen"
end
```
+By default action items are positioned in the same order as they defined (after default actions),
+but it’s also possible to specify their position manually:
+
+```ruby
+action_item :help, priority: 0 do
+ "Display this action to the first position"
+end
+```
+
+Default action item priority is 10.
+
# Modifying the Controller
The generated controller is available to you within the registration block by
using the `controller` method.