Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differentiate exception behavior in Rails 4.0 vs. others
NoMethodError is current_user is nil, so nil.admin? NameError is a superclass of NoMethodError (which Rails 4.0 won't allow) and means current_user might not be defined
- Loading branch information