Commit 9612feef by John Doe

speed up rendering of data views with better json

parent 0986afad
Showing with 3 additions and 2 deletions
home_view_id = current_user.home_data_view_id
json.array! @data_views do |view| json.array! @data_views do |view|
json.extract! view, *DataView.json_keys json.extract! view, *DataView.json_keys
json.owner current_user==view.owner json.owner current_user.id==view.user_id
json.home current_user.home_data_view_id == view.id json.home home_view_id == view.id
end 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 sign in to comment