Code Cleanup: Usage of Polymorphic User instead of ExternalUser and InternalUser
Renamed requestor_user_id -> user_id Index of request_for_comments now returns the n (5?) newest requests per user. Solved via sliding windows in postgres, code added to model. Added route to /my_request_for_comments/ that shows all requests for the current user. Changed view from ERB to slim
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :requestor_user_id %><br>
|
||||
<%= f.number_field :requestor_user_id %>
|
||||
<%= f.label :user_id %><br>
|
||||
<%= f.number_field :user_id %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :exercise_id %><br>
|
||||
|
Reference in New Issue
Block a user