lib/bulldog/attachment/pdf.rb in bulldog-0.0.11 vs lib/bulldog/attachment/pdf.rb in bulldog-0.0.12
- old
+ new
@@ -14,11 +14,10 @@
#
# +style_name+ defaults to the attribute's #default_style.
#
def dimensions(style_name)
if style_name.equal?(:original)
- examine
- @original_dimensions
+ from_examination :original_dimensions
else
style = reflection.styles[style_name]
target_dimensions = style[:size].split(/x/).map(&:to_i)
resized_dimensions(dimensions(:original), target_dimensions, style[:filled])
end