Detect protected_attributes in Rails 4