Performance improvement to generate faster assets (just lookup groups once).
This commit is contained in:
parent
f25815b31d
commit
4537a281a3
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ returns
|
||||||
data[ app_model ][ id ] = local_attributes
|
data[ app_model ][ id ] = local_attributes
|
||||||
|
|
||||||
local_attributes['group_ids'].each_key do |group_id|
|
local_attributes['group_ids'].each_key do |group_id|
|
||||||
|
next if data[:Group] && data[:Group][group_id]
|
||||||
group = Group.lookup(id: group_id)
|
group = Group.lookup(id: group_id)
|
||||||
next if !group
|
next if !group
|
||||||
data = group.assets(data)
|
data = group.assets(data)
|
||||||
|
|
Loading…
Reference in a new issue