docs/8-custom-actions.md in activeadmin-2.9.0 vs docs/8-custom-actions.md in activeadmin-2.10.0
- old
+ new
@@ -60,10 +60,10 @@
HTTP verbs. In that case, this is the suggested approach:
```ruby
member_action :foo, method: [:get, :post] do
if request.post?
- resource.update_attributes! foo: params[:foo] || {}
+ resource.update! foo: params[:foo] || {}
head :ok
else
render :foo
end
end