Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding rubypants in, and some exception wrappers.

  • Loading branch information...
commit da61158cd0f100731828170e5005fb31c7c5f5ad 1 parent 38963f4
@smathy authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 config/environment.rb
View
8 config/environment.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.