Sha256: fb96728444fd190012062da9e4e24bc5aa8782d6a6898a358546a4f63762842b

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

module Authengine
  module UsersHelper
  #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
    def requested_user_or_self
      @user == current_user ? update_self_authengine_user_url(@user) : authengine_user_url(@user, :method => :put)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authengine-0.0.2 app/helpers/authengine/users_helper.rb