(originally asked in https://gitter.im/reactrb/chat?at=584e1001b4ffd59e3817981f)
for Devise I am using the following to set the acting_user
class ApplicationController < ActionController::Base
def acting_user
@acting_user ||= session["warden.user.user.key"] && User.find(session["warden.user.user.key"][0])
end
end
Is this acting_user also available on the client already? If not, how would I get the current_user within a component?
(originally asked in https://gitter.im/reactrb/chat?at=584e1001b4ffd59e3817981f)
for Devise I am using the following to set the acting_user
Is this acting_user also available on the client already? If not, how would I get the current_user within a component?