Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add rails_engine

  • Loading branch information...
commit 51658b0075b6740ab5722fffb3053f8c30b8db8e 1 parent 350d5c1
@mvj3 authored
View
1  app/assets/javascripts
View
1  lib/markdownizer.rb
@@ -74,6 +74,7 @@
# [cr]: http://github.com/rubychan/coderay
require 'rdiscount'
+require File.expand_path("../markdownizer/rails_engine.rb", __FILE__)
require 'active_record' unless defined?(ActiveRecord)
Pygments::Lexer.create :name => "XML", :filenames => ["*.xaml"], :aliases => ["xml"], :mimetypes => ["application/xml+evoque"] if defined?(Pygments)
View
11 lib/markdownizer/rails_engine.rb
@@ -0,0 +1,11 @@
+# encoding: UTF-8
+
+module Markdownizer
+ class Engine < Rails::Engine
+ initializer "qa.load_app_instance_data" do |app|
+ app.class.configure do
+ config.paths["app/assets"] += Markdownizer::Engine.paths["app/assets"].existent
+ end
+ end
+ end if defined?(Rails)
+end
Please sign in to comment.
Something went wrong with that request. Please try again.