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.
Files changed (2) hide show
  1. data/lib/graffic.rb +8 -0
  2. 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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeremyboles-graffic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Boles