-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better #22
Conversation
@@ -3,7 +3,7 @@ class Api::ApplicationsController < Api::ApiApplicationController | |||
load_and_authorize_resource :application | |||
|
|||
def index | |||
render status: 200, json: @applications | |||
render status: 200, json: @applications.lti |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@applications
would be an array of activerecord models. So what is .lti
doing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It filters the application to just applications of type 'lti'. It's provided automatically by rails because of the enum type in the model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, I didn't know that. cool stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Changes Unknown when pulling 85680c5 on better into ** on master**. |
Add migration to change integer to bigint
No description provided.