Detect if a Rail 4 User is using Protected_attributes

A slightly cleaner implementation that should detect if a user is using protected_attributes vs just turning it off for anything > rails 3.