Skip to content

Commit

Permalink
Removing some debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Jul 3, 2012
1 parent b2d7db1 commit e22d9d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/helpers/spree/social_bookmarks_helper.rb
Expand Up @@ -9,12 +9,11 @@ def display_bookmarks(product_or_url = nil, title = nil)
image = nil

if product_or_url.nil?
Rails.logger.info "HUH?"
# TODO there has to be a better way to handle this
url = request.env["REQUEST_URI"]
url = 'http://'+request.host + request.fullpath if url.nil? or url.eql?(url.gsub(/http:/,'').gsub(/HTTP:/,''))
elsif product_or_url.class == String and url.eql?(url.gsub(/http:/,'').gsub(/HTTP:/,''))
url = 'http://'+request.host + url
Rails.logger.info "NOWAY"
elsif product_or_url.class == Spree::Product
url = polymorphic_url product_or_url

Expand Down

0 comments on commit e22d9d3

Please sign in to comment.