Class: Admin::ReadersController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/admin/readers_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
15
16
# File 'app/controllers/admin/readers_controller.rb', line 10

def create
  model.update_attributes!(params[:reader])
  model.clear_password = params[:reader][:password] if params[:reader] && params[:reader][:password]      # condition is so that radiant tests pass
  model.send_invitation_message
  flash[:notice] = t('reader_extension.reader_saved')
  response_for :create
end