Skip to content

Commit

Permalink
Add a workaround to Rails bug #320. [#30 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber committed Aug 4, 2008
1 parent 3530f0f commit 2534ee2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/redcloth.rb
@@ -1,5 +1,7 @@
$:.unshift(File.dirname(__FILE__))

Object.send(:remove_const, :RedCloth) if Object.const_defined?(:RedCloth) # in case this is a frozen gem in Rails 2.1 and RedCloth 3.0.4 was already loaded by Rails' ActionView::Helpers::TextHelper. This appears to be fixed in Edge Rails [51e4106].

require 'redcloth_scan'
require 'redcloth/version'
require 'redcloth/textile_doc'
Expand Down

0 comments on commit 2534ee2

Please sign in to comment.