app/controllers/avo/actions_controller.rb in avo-0.5.0.beta1 vs app/controllers/avo/actions_controller.rb in avo-0.5.0.beta2
- old
+ new
@@ -33,9 +33,10 @@
if params[:id].present?
model = @resource.model_class.find params[:id]
end
@action = action_name.safe_constantize.new
+ @action.configure
@action.hydrate(model: model, resource: resource, user: _current_user)
@action.boot_fields request
end
def respond(response)