File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
- require File . join ( File . dirname ( __FILE__ ) , 'lib' , 'dm-paperclip' )
2
- File . send :include , Paperclip ::Upfile
1
+ require File . join ( File . dirname ( __FILE__ ) , 'lib' , 'dm-paperclip' )
Original file line number Diff line number Diff line change 37
37
require File . join ( File . dirname ( __FILE__ ) , 'dm-paperclip' , 'validations' ) unless defined? ( DataMapper ::Validate ) . nil?
38
38
39
39
module Paperclip
40
- VERSION = "2.1.2"
40
+ VERSION = "2.1.2.1 "
41
41
class << self
42
42
# Provides configurability to Paperclip. There are a number of options available, such as:
43
43
# * whiny_thumbnails: Will raise an error if Paperclip cannot process thumbnails of
@@ -214,16 +214,12 @@ def save_attached_files
214
214
215
215
def destroy_attached_files
216
216
each_attachment do |name , attachment |
217
- attachment . queue_existing_for_delete
218
- attachment . flush_deletes
217
+ attachment . send ( : queue_existing_for_delete)
218
+ attachment . send ( : flush_deletes)
219
219
end
220
220
end
221
221
end
222
222
223
223
end
224
224
225
- # Set it all up.
226
- if Object . const_defined? ( "ActiveRecord" )
227
- ActiveRecord ::Base . send ( :include , Paperclip )
228
- File . send ( :include , Paperclip ::Upfile )
229
- end
225
+ File . send ( :include , Paperclip ::Upfile )
You can’t perform that action at this time.
0 commit comments