jeremyboles-graffic 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/graffic.rb +8 -0
- metadata +1 -1
data/lib/graffic.rb
CHANGED
@@ -174,6 +174,14 @@ class Graffic < ActiveRecord::Base
|
|
174
174
|
@processors || self.class.processors
|
175
175
|
end
|
176
176
|
|
177
|
+
def reprocess
|
178
|
+
if respond_to?(:original)
|
179
|
+
@image = self.original.image
|
180
|
+
change_state('uploaded')
|
181
|
+
process
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
177
185
|
# Returns a size string. Good for RMagick and image_tag :size
|
178
186
|
def size
|
179
187
|
"#{width}x#{height}"
|