fixes #986 resolves the issue with unless/if on enable_authorization in ruby 2.1 with devise