Module: Authengine::UsersHelper

Defined in:
app/helpers/authengine/users_helper.rb

Instance Method Summary collapse

Instance Method Details

#requested_user_or_selfObject

used in the edit template to create the correct link for saving this permits access control by having both “update self” action and an update action with id passed in url



6
7
8
# File 'app/helpers/authengine/users_helper.rb', line 6

def requested_user_or_self
  @user == current_user ? update_self_authengine_user_url(@user) : authengine_user_url(@user, :method => :put)
end