Skip to content

Commit

Permalink
Fix avatar_helper, use main_app.user_path
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Feb 27, 2017
1 parent 47cb9b2 commit 5ea4fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/users_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def user_avatar_tag(user, version = :md, opts = {})
}

if opts[:link] != false
link_to(raw(img), user_path(user), options)
link_to(raw(img), main_app.user_path(user), options)
else
raw img
end
Expand Down

0 comments on commit 5ea4fca

Please sign in to comment.