Skip to content

Commit

Permalink
Implement solution suggested in issue elia#1
Browse files Browse the repository at this point in the history
Lacking the failing test, though.
  • Loading branch information
elia committed May 24, 2012
1 parent 5248b32 commit 1f7f92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dimensions-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Helper
#
def image_tag source, options = {}
unless options[:size]
fs_path = asset_paths.asset_for(source, nil)
fs_path = asset_paths.asset_for(source, nil).to_path
options[:width], options[:height] = ::Dimensions.dimensions(fs_path)
end
super
Expand Down

0 comments on commit 1f7f92c

Please sign in to comment.