jeremyboles-graffic 0.3.0 → 0.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.
- 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}"
|