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

HW #9

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

HW #9

wants to merge 11 commits into from

Conversation

BlueColorPencils
Copy link

here it is.. I didn't do any VCR testing stuff that tests the APIs. I met most of the requirements.

Cristal Tay added 10 commits May 16, 2016 16:16
…it's been awhile.. since I've said I'm sorry.
…e the unfavorite path happen with the button. currently trying to refactor code in the suggestions controller. if it all goes to shit. revert commit back to this point.
… moved some repetitive shit into private methods in the suggestions controller.

class Music < ActiveRecord::Base
def self.search(type, id)
if type.downcase == "artist"

Choose a reason for hiding this comment

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

I think this would be a great place to use a case/when statement instead of if/elsif to set the type of search. Both ways work.

@lacuchilla
Copy link

Great job overall! Your code was easy to read and well written.

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