Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 572cc436e2bcf5ead694cc962a5808e1e2456cf0 1 parent eac71a2
@defunkt authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 init.rb
View
7 init.rb
@@ -1,3 +1,8 @@
-require 'RedCloth'
+begin
+ require 'RedCloth'
@tekin
tekin added a note

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+rescue LoadError
+ nil
+end
+
require 'acts_as_textiled'
ActiveRecord::Base.send(:include, Err::Acts::Textiled)
Please sign in to comment.
Something went wrong with that request. Please try again.