Added fix for Rails 4 issue from https://github.com/neubloc/cancan/commit/5e2c6ecd10125d974fb1a80aff2fb4ebb43b84bf