Skip to content
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

seed default courses #32

Merged
merged 3 commits into from
Dec 11, 2019
Merged

seed default courses #32

merged 3 commits into from
Dec 11, 2019

Conversation

EmCousin
Copy link
Owner

@EmCousin EmCousin commented Dec 7, 2019

#33

@EmCousin EmCousin self-assigned this Dec 7, 2019
@EmCousin EmCousin mentioned this pull request Dec 7, 2019
4 tasks
Comment on lines 5 to 6
weekdays.to_a.foreach do |weekday_name, weekday_index|
slots.foreach do |slot|
Copy link
Collaborator

Choose a reason for hiding this comment

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

The object method foreach does not exist. Can you please replace it by each?

title: title,
description: title,
capacity: 60,
weekday: weekdayz_index,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please remove the z at the end of weekdayz.

slots = ['11h - 12h']
end

create_courses!(category, weekdays, slots, 60)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The argument 60 is not expected by the function, so it should be removed to allow the code to be executed.

@silvadaniele silvadaniele merged commit e16577d into master Dec 11, 2019
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.

2 participants