Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
lumen-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9612feef
authored
Jun 14, 2017
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
speed up rendering of data views with better json
parent
0986afad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app/views/data_views/index.json.jbuilder
app/views/data_views/index.json.jbuilder
View file @
9612feef
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment