jeremyboles-graffic 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/graffic.rb +9 -0
- metadata +1 -1
data/lib/graffic.rb
CHANGED
@@ -156,6 +156,15 @@ class Graffic < ActiveRecord::Base
|
|
156
156
|
status
|
157
157
|
end
|
158
158
|
|
159
|
+
def save_and_process_without_versions
|
160
|
+
if status = save
|
161
|
+
move_without_queue!
|
162
|
+
upload_without_queue!
|
163
|
+
process_without_verions!
|
164
|
+
end
|
165
|
+
status
|
166
|
+
end
|
167
|
+
|
159
168
|
# Returns a size string. Good for RMagick and image_tag :size
|
160
169
|
def size
|
161
170
|
"#{width}x#{height}"
|