Rails: activeadmin overriding create action

后端 未结 4 1084
渐次进展
渐次进展 2021-01-30 12:34

I have an activeadmin resource which has a belongs_to :user relationship.

When I create a new Instance of the model in active admin, I want to associate the currently lo

4条回答
  •  清酒与你
    2021-01-30 13:06

    As per the AA source code this worked for me:

    controller do
      def call_before_create(offer)
      end
    end
    

提交回复
热议问题