Class: DailyUsersController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/daily_users_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



5
6
7
8
9
10
11
12
# File 'app/controllers/daily_users_controller.rb', line 5

def update
  params[:daily_user][:password] = nil if params[:daily_user][:password].blank?
  
  update! do |success, failure|
    success.all { redirect_after_update }
    failure.all { render :edit }
  end
end