Skip to content

Commit

Permalink
Fix user profile avatar on his page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 14, 2013
1 parent 638b519 commit 74b9a62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions app/helpers/application_helper.rb
Expand Up @@ -92,6 +92,7 @@ def display_user_avatar(user, size='avatar', klass='alignleft')
else
user.resource.upload.avatar.url
end
return if avatar_path.nil?
avatar_url = File.join(this_blog.base_url, avatar_path)
elsif user.twitter_profile_image.present?
avatar_url = user.twitter_profile_image
Expand Down
1 change: 0 additions & 1 deletion spec/controllers/admin/profiles_controller_spec.rb
Expand Up @@ -3,7 +3,6 @@
describe Admin::ProfilesController do
render_views
let!(:blog) { create(:blog) }

let(:alice) { create(:user, login: 'alice', profile: create(:profile_admin, label: Profile::ADMIN)) }

describe "#index" do
Expand Down

0 comments on commit 74b9a62

Please sign in to comment.