mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Remove unnecessary callback invocations
There are no registered callback methods to execute.
This commit is contained in:
@@ -29,10 +29,7 @@ module Admin
|
||||
end
|
||||
|
||||
def create
|
||||
invoke_callbacks(:create, :before)
|
||||
|
||||
if params[:order_cycle_ids].blank?
|
||||
invoke_callbacks(:create, :fails)
|
||||
return respond_with(@object)
|
||||
end
|
||||
|
||||
@@ -49,7 +46,6 @@ module Admin
|
||||
format.js { render layout: false }
|
||||
end
|
||||
else
|
||||
invoke_callbacks(:create, :fails)
|
||||
respond_with(@object)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user