-
Notifications
You must be signed in to change notification settings - Fork 3
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
Populate user subjects based on documents #634
base: master
Are you sure you want to change the base?
Conversation
end | ||
|
||
def index | ||
redirect_to new_academic_history_path |
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.
Por que definis el index si el boton en el menu lleva al new? Se podria sacar?
class PdfProcessor | ||
include Enumerable | ||
|
||
AcademicEntry = Struct.new(:name, :credits, :number_of_failures, :date_of_completion, :grade) do |
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.
Creo que deberias mover esto a una clase AcademicHistory::AcademicEntry
luego en esa clase podes definir un metodo como save_academic_entry_to_user(user)
y moves el codigo que dejaste en el controller para ahi.
Además, asi podemos hacer test sobre esa clase.
Screen.Recording.2025-01-21.at.9.56.23.PM.mov