Updated to fix for Rails 4 + protected gem