Sha256: b37861491b0c677a961389cb3a1bc6d37a1ee0dfb5d40ab4cbfae871b953b9ef
Contents?: true
Size: 974 Bytes
Versions: 4
Compression:
Stored size: 974 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) # If this is a frozen gem in Rails 2.1 and RedCloth 3.x was already # loaded by Rails' ActionView::Helpers::TextHelper, the user will get # "redcloth_scan.bundle: Class is not a module (TypeError)" # This hack is to work around that Rails loading problem. The problem # appears to be fixed in Edge Rails [51e4106]. Object.send(:remove_const, :RedCloth) if Object.const_defined?(:RedCloth) && RedCloth.is_a?(Class) require 'redcloth_scan' require 'redcloth/version' require 'redcloth/textile_doc' require 'redcloth/formatters/base' require 'redcloth/formatters/html' require 'redcloth/formatters/latex' module RedCloth # A convenience method for creating a new TextileDoc. See # RedCloth::TextileDoc. def self.new( *args, &block ) RedCloth::TextileDoc.new( *args, &block ) end # Include extension modules (if any) in TextileDoc. def self.include(*args) RedCloth::TextileDoc.send(:include, *args) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
RedCloth-4.0.3-x86-mswin32-60 | lib/redcloth.rb |
RedCloth-4.0.3 | lib/redcloth.rb |
RedCloth-4.0.4 | lib/redcloth.rb |
RedCloth-4.0.4-x86-mswin32-60 | lib/redcloth.rb |