Skip to content

Commit

Permalink
Fix to set_current_user on dev_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tslocke committed Apr 24, 2008
1 parent b01966e commit 824d199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/dev_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Hobo::DevController < ActionController::Base

def set_current_user
model = params[:model] || Hobo::User.default_user_model
self.current_user = params[:name] ? model[params[:name]] : model.find(params[:id])
self.current_user = params[:name] ? model.named(params[:name]) : model.find(params[:id])
redirect_to(request.env["HTTP_REFERER"] ? :back : home_page)
end

Expand Down

0 comments on commit 824d199

Please sign in to comment.