dm-paperclip 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.0"
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 3
8
- - 0
9
- version: 2.3.0
8
+ - 1
9
+ version: 2.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ken Robertson