-
Notifications
You must be signed in to change notification settings - Fork 120
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
Supplier ability to add products and be associated by shipping categories. #75
base: master
Are you sure you want to change the base?
Conversation
if ['/admin', '/admin/authorization_failure'].include?(request.path) && try_spree_current_user.try(:supplier) | ||
redirect_to '/admin/shipments' and return false | ||
def authorize_supplier | ||
if respond_to?(:model_class, true) && model_class |
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.
Use the return of the conditional for variable assignment and comparison.
private | ||
|
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.
Trailing whitespace detected.
authorize! :supplier, record | ||
authorize! action, record | ||
end | ||
|
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.
Trailing whitespace detected.
Supplier ability to add products and be associated by shipping categories.