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

Remove the Watchlists model #607

Merged
merged 2 commits into from
Aug 9, 2015
Merged

Remove the Watchlists model #607

merged 2 commits into from
Aug 9, 2015

Conversation

NuckChorris
Copy link
Member

There's been a lot of legacy crap using the Watchlists model, which for some damn reason never got properly torn out. This tears it out.

Oh and it also adds a way for MessageFormatter to extract mentioned users, which I'll be implementing as part of my feed refactoring ;)

@@ -33,6 +33,14 @@ class LibraryEntry < ActiveRecord::Base
VALID_STATUSES = ["Currently Watching", "Plan to Watch", "Completed", "On Hold", "Dropped"]
validates :status, inclusion: {in: VALID_STATUSES}

SNAKE_PARAMETERS = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't like this constant name because it don't relate to the hash content. maybe something like SNAKE_STATUSES or STATUSES_HASH?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can agree with that, I kind of halfassed the naming. Will fix in morning.

@DNA
Copy link
Collaborator

DNA commented Jul 20, 2015

Nice refactor! It's much more understandable now :)

@trmcnvn
Copy link
Contributor

trmcnvn commented Aug 9, 2015

💯 LGTM

NuckChorris added a commit that referenced this pull request Aug 9, 2015
@NuckChorris NuckChorris merged commit 08cf2a5 into master Aug 9, 2015
@NuckChorris NuckChorris deleted the fuck-watchlists branch September 27, 2015 06:38
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