public
Fork of defunkt/acts_as_textiled
Description: Makes your models act as textiled.
Homepage: http://errtheblog.com/posts/12-actsastextiled
Clone URL: git://github.com/github/acts_as_textiled.git
acts_as_textiled: Fail to load RedCloth gracefully [#35 state:resolved]
defunkt (author)
Wed Jun 13 08:48:48 -0700 2007
commit  572cc436e2bcf5ead694cc962a5808e1e2456cf0
tree    425440987acc2f5e8e83a564abb70130b9ea8b71
parent  eac71a20b391ee28623664658aaf17b26c4ce0cf
...
1
 
 
 
 
 
 
2
3
...
 
1
2
3
4
5
6
7
8
0
@@ -1,3 +1,8 @@
0
-require 'RedCloth'
0
+begin
0
+ require 'RedCloth'
0
+rescue LoadError
0
+ nil
0
+end
0
+
0
 require 'acts_as_textiled'
0
 ActiveRecord::Base.send(:include, Err::Acts::Textiled)

Comments

    No one has commented yet.