From de3f27f8b17a2a98333e9bafeba74e971a9f3d18 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Fri, 5 Aug 2011 23:04:30 -0700 Subject: [PATCH] We don't need to check defined? on an instance variable --- app/views/shared/_stream_element.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_stream_element.html.haml b/app/views/shared/_stream_element.html.haml index c19c2ba34..1c869ca00 100644 --- a/app/views/shared/_stream_element.html.haml +++ b/app/views/shared/_stream_element.html.haml @@ -54,7 +54,7 @@ = t('.via', :link => link_to("#{post.provider_display_name}", post.actor_url)).html_safe ยท - - unless (defined?(@commenting_disabled) && @commenting_disabled) + - unless @commenting_disabled %span.like_action = like_action(post, current_user) @@ -69,4 +69,4 @@ .likes.on_post = render "likes/likes_container", :target_id => post.id, :likes_count => post.likes_count, :current_user => current_user, :target_type => "Post" - = render "comments/comments", :post => post, :current_user => current_user, :commenting_disabled => (defined?(@commenting_disabled) && @commenting_disabled) + = render "comments/comments", :post => post, :current_user => current_user, :commenting_disabled => @commenting_disabled