Adds yield around resource on controllers

Adding same functionality as https://github.com/plataformatec/devise/pull/2728 thanks to @edelpero 

Allows:
```
class Overrided::InvitationsController < Devise::InvitationsController

  def update
    super do |resource|
      BackgroundWorker.trigger
    end
  end

end
```