title: Devise 3.0.0rc custom attributes and strong parameters in Rails 4
body: <p>I used <a href="https://github.com/plataformatec/devise#strong-parameters" rel="nofollow noreferrer">this</a> solution based on <code>devise_parameter_sanitizer</code> to set some custom attributes to my <a href="https://github.com/plataformatec/devise" rel="nofollow noreferrer">Devise</a> (User) model and make them available at sign_up and edit forms.</p>
  
  <p>Everything works fine but from time to time (and it happens pretty often) specifically when I sign in, sign out or edit user (so I assume the problem is related to sessions), I get the following error:</p>
  
  <p><img src="https://i.imgur.com/zXB9GEI.png" alt="Devise Parameter Sanitizer"></p>
  
  <p>Is there any logic that I can add to my code above to present this issue?</p>