parent
c6cd3a5720
commit
48ea06ec8a
@ -1,7 +1,3 @@
|
|||||||
if @sub_entries.is_a? Array
|
json.array! @sub_entries do |entry|
|
||||||
json.array! @sub_entries do |entry|
|
json.partial! 'repositories/simple_entry', locals: { entry: entry }
|
||||||
json.partial! 'repositories/simple_entry', locals: { entry: entry }
|
|
||||||
end
|
|
||||||
else
|
|
||||||
json.partial! 'repositories/simple_entry', locals: { entry: @sub_entries }
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in new issue