Changes needed for compatibility with Ruby 2.0, Rails 4

Related to this issue: https://github.com/NoamB/sorcery/issues/400

This probably isn't the way you want to fix it, but something needs to change and this worked for me so I'm submitting it for info purposes.