bteitelb-paperclip 2.3.1.7 → 2.3.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/paperclip/attachment.rb +3 -0
- metadata +2 -2
data/lib/paperclip/attachment.rb
CHANGED
@@ -438,6 +438,9 @@ module Paperclip
|
|
438
438
|
|
439
439
|
def dimensions style = default_style
|
440
440
|
return [nil,nil] unless image?
|
441
|
+
if @styles[style]
|
442
|
+
return @styles[style][:geometry].match(/(\d*)x(\d*)/)[1,2].map {|s| s.to_i}
|
443
|
+
end
|
441
444
|
return @dimensions[style] unless @dimensions[style].nil?
|
442
445
|
w, h = instance_read(:width), instance_read(:height)
|
443
446
|
if w.nil? or h.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bteitelb-paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.1.
|
4
|
+
version: 2.3.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Yurek
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
153
153
|
- ImageMagick
|
154
154
|
rubyforge_project: paperclip
|
155
|
-
rubygems_version: 1.3.
|
155
|
+
rubygems_version: 1.3.5
|
156
156
|
signing_key:
|
157
157
|
specification_version: 3
|
158
158
|
summary: File attachments as attributes for ActiveRecord
|