Commit 67faea71 authored by charlie-ablett's avatar charlie-ablett
Browse files

Artificially limits number of process chains to 25 for admins until pagination is sorted

parent 7930297a
......@@ -3,7 +3,7 @@ class RecipeSerializer < ActiveModel::Serializer
has_many :recipe_steps, serializer: RecipeStepSerializer
has_many :process_chains, serializer: ProcessChainSerializer do
if scope.admin?
object.process_chains
object.process_chains.take(25)
else
object.process_chains.where(account_id: scope.account.id)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment