Permalink
Browse files

Adding rubypants in, and some exception wrappers.

  • Loading branch information...
smathy committed Mar 26, 2009
1 parent 38963f4 commit da61158cd0f100731828170e5005fb31c7c5f5ad
Showing with 5 additions and 3 deletions.
  1. +5 −3 config/environment.rb
View
@@ -63,6 +63,8 @@
require 'cgi' # we use this in places
require 'digest/sha1' # for password hashing
require 'digest/md5' # for creating MD5 hashes (gravatar)
- require 'bluecloth' # for bluecloth support
- require 'redcloth' # for textile support
- require 'coderay' # for coderay support (syntax highlighting)
+
+ begin; require 'bluecloth'; rescue LoadError; end #TODO | should add some flag somewhere
+ begin; require 'redcloth'; rescue LoadError; end #TODO | to disable these choices in the
+ begin; require 'coderay'; rescue LoadError; end #TODO | admin - so if these aren't loaded
+ begin; require 'rubypants'; rescue LoadError; end #TODO | then they can't be selected

0 comments on commit da61158

Please sign in to comment.