Permalink
Browse files

Merge pull request #1 from jsntv200/require

require RedCloth and declare as a config.gem
  • Loading branch information...
2 parents e9cb28c + 7473137 commit f4b76b8249170b851a22497ec494ea342a0a8d1f @johnmuhl johnmuhl committed Aug 3, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 textile_filter_extension.rb
@@ -1,10 +1,16 @@
+require "RedCloth"
+
class TextileFilterExtension < Radiant::Extension
version "1.0.0"
description "Allows you to compose page parts or snippets using the Textile text filter."
url "http://textism.com/tools/textile/"
+ extension_config do |config|
+ config.gem "RedCloth", :version => ">= 4.2.0"
+ end
+
def activate
TextileFilter
Page.send :include, TextileTags
end
-end
+end

0 comments on commit f4b76b8

Please sign in to comment.