dm-paperclip 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dm-paperclip.rb +1 -1
- data/lib/dm-paperclip/attachment.rb +1 -1
- metadata +2 -2
data/lib/dm-paperclip.rb
CHANGED
@@ -42,7 +42,7 @@ require 'dm-paperclip/attachment'
|
|
42
42
|
# documentation for Paperclip::ClassMethods for more useful information.
|
43
43
|
module Paperclip
|
44
44
|
|
45
|
-
VERSION = "2.3.
|
45
|
+
VERSION = "2.3.1"
|
46
46
|
|
47
47
|
# To configure Paperclip, put this code in an initializer, Rake task, or wherever:
|
48
48
|
#
|
@@ -113,7 +113,7 @@ module Paperclip
|
|
113
113
|
# update time appended to the url
|
114
114
|
def url style = default_style, include_updated_timestamp = true
|
115
115
|
the_url = original_filename.nil? ? interpolate(@default_url, style) : interpolate(@url, style)
|
116
|
-
include_updated_timestamp && updated_at ? [the_url, updated_at.to_i].compact.join(the_url.include?("?") ? "&" : "?") : the_url
|
116
|
+
include_updated_timestamp && updated_at ? [the_url, updated_at.to_time.to_i].compact.join(the_url.include?("?") ? "&" : "?") : the_url
|
117
117
|
end
|
118
118
|
|
119
119
|
# Returns the path of the attachment as defined by the :path option. If the
|