-
Notifications
You must be signed in to change notification settings - Fork 45
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
Octos- Ari- MediaRanker Revisited #33
base: master
Are you sure you want to change the base?
Conversation
…to delete dependencies
MediaRanker RevistedWhat We're Looking For
|
@@ -2,6 +2,7 @@ class WorksController < ApplicationController | |||
# We should always be able to tell what category | |||
# of work we're dealing with | |||
before_action :category_from_work, except: [:root, :index, :new, :create] | |||
before_action :require_login, except: [:root] | |||
|
|||
def root |
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.
You've also added require_login
as a filter on the ApplicationController
, which means it will happen before every single controller action. Your line 5 here adds it again for everything but root
, but doesn't take it away for root
. Instead it should be a skip_before_action
for only :root
.
This is also why all your WorksController
tests were breaking.
This was a tricky one - it took me a while to figure out what was going on 🙂
No description provided.