Skip to content

Commit

Permalink
Merge pull request #1122 from whoshallsucceed/master
Browse files Browse the repository at this point in the history
Remove unused code in image_helper.rb
  • Loading branch information
ugisozols committed Nov 2, 2011
2 parents 34d04ae + 9c8eae4 commit 41b5370
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/app/helpers/refinery/image_helper.rb
Expand Up @@ -26,9 +26,6 @@ def content_fu(content, thumbnail)
# <%= image_fu @model.image, '200x200' %> or with no thumbnail: <%= image_fu @model.image %>
def image_fu(image, geometry = nil, options={})
if image.present?
original_width = image.image_width
original_height = image.image_height

dimensions = (image.thumbnail_dimensions(geometry) rescue {})

image_tag(image.thumbnail(geometry).url, {
Expand Down

0 comments on commit 41b5370

Please sign in to comment.