Sha256: 39603655c90c972a2b7bf82c0698cb5c3c132ab59ef3298a7c3906816ed2869a

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

require File.join(File.dirname(__FILE__), 'helpers.rb')

module RedCloth
  module Rails

    class Engine < ::Rails::Engine
      initializer "redcloth-rails.action_controller" do |app|
        ActiveSupport.on_load :action_view do
          ActionView::Helpers::FormBuilder.send :include, RedCloth::Rails::Helpers::FormBuilder

          ActionView::Base.send :include, RedCloth::Rails::Helpers::FormHelper
          ActionView::Base.send :include, RedCloth::Rails::Helpers::FormTagHelper
        end
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redcloth-rails-0.1.1 lib/redcloth-rails/engine.rb
redcloth-rails-0.1.0 lib/redcloth-rails/engine.rb