Skip to content

Commit

Permalink
acts_as_textiled: Fail to load RedCloth gracefully [#35 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jun 13, 2007
1 parent eac71a2 commit 572cc43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion init.rb
@@ -1,3 +1,8 @@
require 'RedCloth'
begin
require 'RedCloth'

This comment has been minimized.

Copy link
@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.