public
Fork of halorgium/mephisto
Description: A refactored Mephisto that has multiple spam detection engines.
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/francois/mephisto.git
Allow Resource#non_image_extnames to be overridden by plugins [myles_b]

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2642 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sun Jan 07 22:07:07 -0800 2007
commit  b2cb3ca0929ba2b1dc0acd2d51e6274d43bd1a8b
tree    f010b1381c4b54feeea6b607702b65f20531be60
parent  a7264f9f2a381794c9b25a5d4fe184638e40dc77
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 * SVN *
0
 
0
+# Allow Resource#non_image_extnames to be overridden by plugins [myles_b]
0
+
0
 * filter password fields in logs [chrissturm]
0
 
0
 * add *.ico to list of approved extensions for theme resources [myles_b]
...
1
2
 
 
3
4
 
5
6
7
...
1
 
2
3
4
 
5
6
7
8
0
@@ -1,7 +1,8 @@
0
 class Resources < Attachments
0
- NON_IMAGE_EXTNAMES = %w(.js .css)
0
+ @@non_image_extnames = %w(.js .css)
0
+ cattr_reader :non_image_extnames
0
   def image?(path)
0
- !NON_IMAGE_EXTNAMES.include?(path.extname)
0
+ !non_image_extnames.include?(path.extname)
0
   end
0
   
0
   def content_type(path)

Comments

    No one has commented yet.