Controllers, views..

```ruby
class User < ActiveRecord::Base
  ...
  def needs_password?(params)
    email != params[:email] || ....
  end 
```

и вызов: user.needs_password?(params[:user])