Skip to content

Commit

Permalink
restore current_user set removed in f9c2770 [#930]
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Mar 28, 2011
1 parent a1aae8f commit c94a26c
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -17,7 +17,10 @@ class <%= class_name %>Controller < ApplicationController

def do_accept_invitation
do_transition_action :accept_invitation do
flash[:notice] = t("hobo.messages.you_signed_up", :default=>"You have signed up") if this.valid?
if this.valid?
self.current_user = this
flash[:notice] = t("hobo.messages.you_signed_up", :default=>"You have signed up")
end
end
end
<% end -%>
Expand Down

0 comments on commit c94a26c

Please sign in to comment.