Added the before filter required to make cancan work with Rails 4.