Skip to content

Conversation

@kylesferrazza
Copy link
Collaborator

No description provided.

@kylesferrazza kylesferrazza force-pushed the last-registration-update-api branch from d1ad4a1 to 87280ba Compare October 5, 2020 23:43
end

def last_reg_update
course.registrations.order(updated_at: :desc).first.updated_at
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silly me, I forgot Ruby has .last. So this could be terser as .order(:updated_at).last

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants