Permalink
Browse files

acts_as_textiled: Fail to load RedCloth gracefully [#35 state:resolved]

  • Loading branch information...
1 parent eac71a2 commit 572cc436e2bcf5ead694cc962a5808e1e2456cf0 @defunkt committed Jun 13, 2007
Showing with 6 additions and 1 deletion.
  1. +6 −1 init.rb
View
@@ -1,3 +1,8 @@
-require 'RedCloth'
+begin
+ require 'RedCloth'
@tekin

tekin Jul 22, 2008

I’ve just installed RedCloth 4.0 and my app falls over at this line with a “RedCloth is not a module” error. Changing it to:
require 'redcloth'
stops the error.

+rescue LoadError
+ nil
+end
+
require 'acts_as_textiled'
ActiveRecord::Base.send(:include, Err::Acts::Textiled)

0 comments on commit 572cc43

Please sign in to comment.