Class: Admin::ReadersController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Admin::ReadersController
- Defined in:
- app/controllers/admin/readers_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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. flash[:notice] = t('reader_extension.reader_saved') response_for :create end |