public
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/technoweenie/attachment_fu.git
Click here to lend your support to: attachment_fu and make a donation at www.pledgie.com !
reload pixel plugins properly
rick (author)
Wed Apr 23 18:29:06 -0700 2008
commit  b886be8a4c49e3b252a153771bd33c5cf9ee0c89
tree    8c3e0b6365b44b896215c2524b7ad88a22e5349e
parent  324b3ab0615d503646b8292639d5022ffbf455a7
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ module AttachmentFu
0
       @@key_to_class ||= {}
0
       @@key_to_class[key] ||= begin
0
         path = key.to_s
0
- require "attachment_fu/pixels/#{path}"
0
+ send respond_to?(:require_dependency) ? :require_dependency : :require, "attachment_fu/pixels/#{path}"
0
         const_get(path.classify)
0
       end
0
     end

Comments

    No one has commented yet.