Permalink
Browse files

URL interpolation does not interpolate timestamp

  • Loading branch information...
1 parent 0358216 commit 93b116ef2f3e78cc3d431eb9a6279f29ee8a68c7 @jyurek jyurek committed May 12, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/paperclip/interpolations.rb
  2. +1 −1 test/interpolations_test.rb
@@ -43,7 +43,7 @@ def filename attachment, style
# is used in the default :path to ease default specifications.
def url attachment, style
raise InfiniteInterpolationError if attachment.options[:url].include?(":url")
- attachment.url(style)
+ attachment.url(style, false)
end
# Returns the timestamp as defined by the <attachment>_updated_at field
@@ -79,7 +79,7 @@ class InterpolationsTest < Test::Unit::TestCase
should "reinterpolate :url" do
attachment = mock
attachment.expects(:options).returns({:url => ":id"})
- attachment.expects(:url).with(:style).returns("1234")
+ attachment.expects(:url).with(:style, false).returns("1234")
assert_equal "1234", Paperclip::Interpolations.url(attachment, :style)
end

0 comments on commit 93b116e

Please sign in to comment.